Class: Io::Flow::V0::Models::AvailableFilterUnstructured
- Inherits:
-
AvailableFilter
- Object
- AvailableFilter
- Io::Flow::V0::Models::AvailableFilterUnstructured
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from AvailableFilter
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AvailableFilterUnstructured
constructor
A new instance of AvailableFilterUnstructured.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AvailableFilter
Constructor Details
#initialize(incoming = {}) ⇒ AvailableFilterUnstructured
Returns a new instance of AvailableFilterUnstructured.
23803 23804 23805 23806 23807 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23803 def initialize(incoming={}) super(:discriminator => AvailableFilter::Types::AVAILABLE_FILTER_UNSTRUCTURED) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
23801 23802 23803 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23801 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
23813 23814 23815 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23813 def copy(incoming={}) AvailableFilterUnstructured.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
23817 23818 23819 23820 23821 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23817 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
23809 23810 23811 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23809 def to_json JSON.dump(to_hash) end |