Class: Io::Flow::V0::Models::SessionPutForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::SessionPutForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#experience ⇒ Object
readonly
Returns the value of attribute experience.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SessionPutForm
constructor
A new instance of SessionPutForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ SessionPutForm
Returns a new instance of SessionPutForm.
20186 20187 20188 20189 20190 20191 20192 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20186 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @experience = (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)) @country = (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String)) @currency = (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)) @language = (x = opts.delete(:language); x.nil? ? nil : HttpClient::Preconditions.assert_class('language', x, String)) end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
20184 20185 20186 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20184 def country @country end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
20184 20185 20186 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20184 def currency @currency end |
#experience ⇒ Object (readonly)
Returns the value of attribute experience.
20184 20185 20186 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20184 def experience @experience end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
20184 20185 20186 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20184 def language @language end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
20198 20199 20200 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20198 def copy(incoming={}) SessionPutForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
20202 20203 20204 20205 20206 20207 20208 20209 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20202 def to_hash { :experience => experience, :country => country, :currency => currency, :language => language } end |
#to_json ⇒ Object
20194 20195 20196 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20194 def to_json JSON.dump(to_hash) end |