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
31088 31089 31090 31091 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31088 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.
31086 31087 31088 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31086 def settings @settings end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
31097 31098 31099 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31097 def copy(incoming={}) SubcatalogForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
31101 31102 31103 31104 31105 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31101 def to_hash { :settings => settings.nil? ? nil : settings.to_hash } end |
#to_json ⇒ Object
31093 31094 31095 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31093 def to_json JSON.dump(to_hash) end |