class Io::Flow::V0::Models::QueryBuilderFilterForm
Attributes
filters[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::QueryBuilderForm::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 61190 def initialize(incoming={}) super(:discriminator => QueryBuilderForm::Types::QUERY_BUILDER_FILTER_FORM) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:filters], 'QueryBuilderFilterForm') @filters = HttpClient::Preconditions.assert_class('filters', opts.delete(:filters), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::QueryFilterForm) ? x : ::Io::Flow::V0::Models::QueryFilterForm.from_json(x)) } end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 61201 def copy(incoming={}) QueryBuilderFilterForm.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 61205 def subtype_to_hash { :filters => filters.map { |o| o.to_hash } } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 61197 def to_json JSON.dump(to_hash) end