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
50515 50516 50517 50518 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50515 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.
50513 50514 50515 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50513 def settings @settings end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
50524 50525 50526 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50524 def copy(incoming={}) SubcatalogForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
50528 50529 50530 50531 50532 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50528 def to_hash { :settings => settings.nil? ? nil : settings.to_hash } end |
#to_json ⇒ Object
50520 50521 50522 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50520 def to_json JSON.dump(to_hash) end |