Class: Io::Flow::V0::Models::SubcatalogFunctionForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::SubcatalogFunctionForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#item_function_id ⇒ Object
readonly
Returns the value of attribute item_function_id.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#q ⇒ Object
readonly
Returns the value of attribute q.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SubcatalogFunctionForm
constructor
A new instance of SubcatalogFunctionForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ SubcatalogFunctionForm
Returns a new instance of SubcatalogFunctionForm.
26977 26978 26979 26980 26981 26982 26983 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26977 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:item_function_id], 'SubcatalogFunctionForm') @item_function_id = HttpClient::Preconditions.assert_class('item_function_id', opts.delete(:item_function_id), String) @q = (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String)) @position = (x = opts.delete(:position); x.nil? ? nil : HttpClient::Preconditions.assert_class('position', x, Integer)) end |
Instance Attribute Details
#item_function_id ⇒ Object (readonly)
Returns the value of attribute item_function_id.
26975 26976 26977 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26975 def item_function_id @item_function_id end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
26975 26976 26977 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26975 def position @position end |
#q ⇒ Object (readonly)
Returns the value of attribute q.
26975 26976 26977 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26975 def q @q end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
26989 26990 26991 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26989 def copy(incoming={}) SubcatalogFunctionForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
26993 26994 26995 26996 26997 26998 26999 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26993 def to_hash { :item_function_id => item_function_id, :q => q, :position => position } end |
#to_json ⇒ Object
26985 26986 26987 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26985 def to_json JSON.dump(to_hash) end |