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.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
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.
21483 21484 21485 21486 21487 21488 21489 21490 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21483 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)) @locale = (x = opts.delete(:locale); x.nil? ? nil : HttpClient::Preconditions.assert_class('locale', x, String)) end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
21481 21482 21483 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21481 def country @country end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
21481 21482 21483 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21481 def currency @currency end |
#experience ⇒ Object (readonly)
Returns the value of attribute experience.
21481 21482 21483 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21481 def experience @experience end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
21481 21482 21483 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21481 def language @language end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
21481 21482 21483 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21481 def locale @locale end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
21496 21497 21498 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21496 def copy(incoming={}) SessionPutForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
21500 21501 21502 21503 21504 21505 21506 21507 21508 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21500 def to_hash { :experience => experience, :country => country, :currency => currency, :language => language, :locale => locale } end |
#to_json ⇒ Object
21492 21493 21494 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21492 def to_json JSON.dump(to_hash) end |