Class: Revolut::Api::Response::Merchant
- Inherits:
-
Object
- Object
- Revolut::Api::Response::Merchant
- Defined in:
- lib/revolut/api/response/merchant.rb
Constant Summary collapse
- MAPPING =
{ "id" => :id, "scheme" => :scheme, "name" => :name, "mcc" => :mcc, "country" => :country, "state" => :state, "city" => :city, "postcode" => :postcode, "address" => :address, "category" => :category, }
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#category ⇒ Object
Returns the value of attribute category.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mapping ⇒ Object
Returns the value of attribute mapping.
-
#mcc ⇒ Object
Returns the value of attribute mcc.
-
#name ⇒ Object
Returns the value of attribute name.
-
#postcode ⇒ Object
Returns the value of attribute postcode.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Merchant
constructor
A new instance of Merchant.
Constructor Details
#initialize(hash = {}) ⇒ Merchant
Returns a new instance of Merchant.
21 22 23 24 25 |
# File 'lib/revolut/api/response/merchant.rb', line 21 def initialize(hash = {}) ::Revolut::Api::Response::Merchant::MAPPING.each do |revolut_key, accessor| self.send("#{accessor}=", hash.fetch(revolut_key, nil)) end end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def address @address end |
#category ⇒ Object
Returns the value of attribute category.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def category @category end |
#city ⇒ Object
Returns the value of attribute city.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def country @country end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def id @id end |
#mapping ⇒ Object
Returns the value of attribute mapping.
5 6 7 |
# File 'lib/revolut/api/response/merchant.rb', line 5 def mapping @mapping end |
#mcc ⇒ Object
Returns the value of attribute mcc.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def mcc @mcc end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def name @name end |
#postcode ⇒ Object
Returns the value of attribute postcode.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def postcode @postcode end |
#scheme ⇒ Object
Returns the value of attribute scheme.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def scheme @scheme end |
#state ⇒ Object
Returns the value of attribute state.
6 7 8 |
# File 'lib/revolut/api/response/merchant.rb', line 6 def state @state end |