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.
29684 29685 29686 29687 29688 29689 29690 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29684 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.
29682 29683 29684 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29682 def id @id end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
29682 29683 29684 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29682 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
29682 29683 29684 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29682 def name @name end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
29696 29697 29698 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29696 def copy(incoming={}) AddressConfigurationProvinceTranslationLocale.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
29700 29701 29702 29703 29704 29705 29706 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29700 def to_hash { :id => id, :name => name, :language => language } end |
#to_json ⇒ Object
29692 29693 29694 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29692 def to_json JSON.dump(to_hash) end |