Class: Io::Flow::V0::Models::AddressConfigurationProvinceTranslationLocale
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::AddressConfigurationProvinceTranslationLocale
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AddressConfigurationProvinceTranslationLocale
constructor
A new instance of AddressConfigurationProvinceTranslationLocale.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ AddressConfigurationProvinceTranslationLocale
Returns a new instance of AddressConfigurationProvinceTranslationLocale.
21827 21828 21829 21830 21831 21832 21833 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21827 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :name, :language], 'AddressConfigurationProvinceTranslationLocale') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String) @language = HttpClient::Preconditions.assert_class('language', opts.delete(:language), String) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
21825 21826 21827 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21825 def id @id end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
21825 21826 21827 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21825 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21825 21826 21827 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21825 def name @name end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
21839 21840 21841 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21839 def copy(incoming={}) AddressConfigurationProvinceTranslationLocale.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
21843 21844 21845 21846 21847 21848 21849 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21843 def to_hash { :id => id, :name => name, :language => language } end |
#to_json ⇒ Object
21835 21836 21837 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21835 def to_json JSON.dump(to_hash) end |