Class: Revolut::Api::Response::CardIssuer
- Inherits:
-
Object
- Object
- Revolut::Api::Response::CardIssuer
- Defined in:
- lib/revolut/api/response/card_issuer.rb
Constant Summary collapse
- MAPPING =
{ "bin" => :bin, "name" => :name, "logoUrl" => :logo_url, "cardType" => :card_type, "cardBrand" => :card_brand, "currency" => :currency, "supported" => :supported }
Instance Attribute Summary collapse
-
#bin ⇒ Object
Returns the value of attribute bin.
-
#card_brand ⇒ Object
Returns the value of attribute card_brand.
-
#card_type ⇒ Object
Returns the value of attribute card_type.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#logo_url ⇒ Object
Returns the value of attribute logo_url.
-
#mapping ⇒ Object
Returns the value of attribute mapping.
-
#name ⇒ Object
Returns the value of attribute name.
-
#supported ⇒ Object
Returns the value of attribute supported.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ CardIssuer
constructor
A new instance of CardIssuer.
Constructor Details
#initialize(hash = {}) ⇒ CardIssuer
Returns a new instance of CardIssuer.
20 21 22 23 24 |
# File 'lib/revolut/api/response/card_issuer.rb', line 20 def initialize(hash = {}) ::Revolut::Api::Response::CardIssuer::MAPPING.each do |revolut_key, accessor| self.send("#{accessor}=", hash.fetch(revolut_key, nil)) end end |
Instance Attribute Details
#bin ⇒ Object
Returns the value of attribute bin.
6 7 8 |
# File 'lib/revolut/api/response/card_issuer.rb', line 6 def bin @bin end |
#card_brand ⇒ Object
Returns the value of attribute card_brand.
7 8 9 |
# File 'lib/revolut/api/response/card_issuer.rb', line 7 def card_brand @card_brand end |
#card_type ⇒ Object
Returns the value of attribute card_type.
7 8 9 |
# File 'lib/revolut/api/response/card_issuer.rb', line 7 def card_type @card_type end |
#currency ⇒ Object
Returns the value of attribute currency.
8 9 10 |
# File 'lib/revolut/api/response/card_issuer.rb', line 8 def currency @currency end |
#logo_url ⇒ Object
Returns the value of attribute logo_url.
6 7 8 |
# File 'lib/revolut/api/response/card_issuer.rb', line 6 def logo_url @logo_url end |
#mapping ⇒ Object
Returns the value of attribute mapping.
5 6 7 |
# File 'lib/revolut/api/response/card_issuer.rb', line 5 def mapping @mapping end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/revolut/api/response/card_issuer.rb', line 6 def name @name end |
#supported ⇒ Object
Returns the value of attribute supported.
8 9 10 |
# File 'lib/revolut/api/response/card_issuer.rb', line 8 def supported @supported end |