Class: Io::Flow::V0::Models::QueryFilterUnstructured
- Inherits:
-
QueryFilter
- Object
- QueryFilter
- Io::Flow::V0::Models::QueryFilterUnstructured
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#q ⇒ Object
readonly
Returns the value of attribute q.
Attributes inherited from QueryFilter
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ QueryFilterUnstructured
constructor
A new instance of QueryFilterUnstructured.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from QueryFilter
Constructor Details
#initialize(incoming = {}) ⇒ QueryFilterUnstructured
Returns a new instance of QueryFilterUnstructured.
44621 44622 44623 44624 44625 44626 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44621 def initialize(incoming={}) super(:discriminator => QueryFilter::Types::QUERY_FILTER_UNSTRUCTURED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:q], 'QueryFilterUnstructured') @q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String) end |
Instance Attribute Details
#q ⇒ Object (readonly)
Returns the value of attribute q.
44619 44620 44621 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44619 def q @q end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
44632 44633 44634 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44632 def copy(incoming={}) QueryFilterUnstructured.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
44636 44637 44638 44639 44640 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44636 def subtype_to_hash { :q => q } end |
#to_json ⇒ Object
44628 44629 44630 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44628 def to_json JSON.dump(to_hash) end |