Class: Worldline::Acquiring::SDK::V1::Domain::MarketplaceData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::MarketplaceData
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/marketplace_data.rb
Instance Attribute Summary collapse
-
#retailer_country_code ⇒ String
The current value of retailer_country_code.
-
#retailer_name ⇒ String
The current value of retailer_name.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#retailer_country_code ⇒ String
Returns the current value of retailer_country_code.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/marketplace_data.rb', line 13 def retailer_country_code @retailer_country_code end |
#retailer_name ⇒ String
Returns the current value of retailer_name.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/marketplace_data.rb', line 13 def retailer_name @retailer_name end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/worldline/acquiring/sdk/v1/domain/marketplace_data.rb', line 27 def from_hash(hash) super if hash.has_key? 'retailerCountryCode' @retailer_country_code = hash['retailerCountryCode'] end if hash.has_key? 'retailerName' @retailer_name = hash['retailerName'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/worldline/acquiring/sdk/v1/domain/marketplace_data.rb', line 20 def to_h hash = super hash['retailerCountryCode'] = @retailer_country_code unless @retailer_country_code.nil? hash['retailerName'] = @retailer_name unless @retailer_name.nil? hash end |