Class: Revolut::Api::Response::CardIssuer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#binObject

Returns the value of attribute bin.



6
7
8
# File 'lib/revolut/api/response/card_issuer.rb', line 6

def bin
  @bin
end

#card_brandObject

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_typeObject

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

#currencyObject

Returns the value of attribute currency.



8
9
10
# File 'lib/revolut/api/response/card_issuer.rb', line 8

def currency
  @currency
end

#logo_urlObject

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

#mappingObject

Returns the value of attribute mapping.



5
6
7
# File 'lib/revolut/api/response/card_issuer.rb', line 5

def mapping
  @mapping
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/revolut/api/response/card_issuer.rb', line 6

def name
  @name
end

#supportedObject

Returns the value of attribute supported.



8
9
10
# File 'lib/revolut/api/response/card_issuer.rb', line 8

def supported
  @supported
end