Class: Io::Flow::V0::Models::SubcatalogForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::SubcatalogForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SubcatalogForm
constructor
A new instance of SubcatalogForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ SubcatalogForm
25823 25824 25825 25826 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25823 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @settings = (x = opts.delete(:settings); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::SubcatalogSettingsForm) ? x : ::Io::Flow::V0::Models::SubcatalogSettingsForm.new(x))) end |
Instance Attribute Details
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
25821 25822 25823 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25821 def settings @settings end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
25832 25833 25834 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25832 def copy(incoming={}) SubcatalogForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
25836 25837 25838 25839 25840 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25836 def to_hash { :settings => settings.nil? ? nil : settings.to_hash } end |
#to_json ⇒ Object
25828 25829 25830 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25828 def to_json JSON.dump(to_hash) end |