Class: Cards::Card
- Inherits:
-
Object
- Object
- Cards::Card
- Defined in:
- lib/Cards.rb
Overview
noinspection ALL
Instance Attribute Summary collapse
-
#brand ⇒ Object
readonly
Returns the value of attribute brand.
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
-
#exp_month ⇒ Object
readonly
Returns the value of attribute exp_month.
-
#exp_year ⇒ Object
readonly
Returns the value of attribute exp_year.
-
#expired ⇒ Object
readonly
Returns the value of attribute expired.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#isin ⇒ Object
readonly
Returns the value of attribute isin.
-
#issuer ⇒ Object
readonly
Returns the value of attribute issuer.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Card
constructor
A new instance of Card.
Constructor Details
#initialize(options = {}) ⇒ Card
Returns a new instance of Card.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/Cards.rb', line 10 def initialize( = {}) @name = get_arg(, 'name_on_card') @exp_year = get_arg(, 'card_exp_year') @reference = get_arg(, 'card_reference') @exp_month = get_arg(, 'card_exp_month') @expired = get_arg(, 'expired') @fingerprint = get_arg(, 'card_fingerprint') @isin = get_arg(, 'card_isin') @type = get_arg(, 'card_type') @issuer = get_arg(, 'card_issuer') @brand = get_arg(, 'card_brand') @token = get_arg(, 'card_token') @nickname = get_arg(, 'nickname') @number = get_arg(, 'card_number') @deleted = get_arg(, 'deleted') end |
Instance Attribute Details
#brand ⇒ Object (readonly)
Returns the value of attribute brand.
8 9 10 |
# File 'lib/Cards.rb', line 8 def brand @brand end |
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
8 9 10 |
# File 'lib/Cards.rb', line 8 def deleted @deleted end |
#exp_month ⇒ Object (readonly)
Returns the value of attribute exp_month.
8 9 10 |
# File 'lib/Cards.rb', line 8 def exp_month @exp_month end |
#exp_year ⇒ Object (readonly)
Returns the value of attribute exp_year.
8 9 10 |
# File 'lib/Cards.rb', line 8 def exp_year @exp_year end |
#expired ⇒ Object (readonly)
Returns the value of attribute expired.
8 9 10 |
# File 'lib/Cards.rb', line 8 def expired @expired end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
8 9 10 |
# File 'lib/Cards.rb', line 8 def fingerprint @fingerprint end |
#isin ⇒ Object (readonly)
Returns the value of attribute isin.
8 9 10 |
# File 'lib/Cards.rb', line 8 def isin @isin end |
#issuer ⇒ Object (readonly)
Returns the value of attribute issuer.
8 9 10 |
# File 'lib/Cards.rb', line 8 def issuer @issuer end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/Cards.rb', line 8 def name @name end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
8 9 10 |
# File 'lib/Cards.rb', line 8 def nickname @nickname end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
8 9 10 |
# File 'lib/Cards.rb', line 8 def number @number end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
8 9 10 |
# File 'lib/Cards.rb', line 8 def reference @reference end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
8 9 10 |
# File 'lib/Cards.rb', line 8 def token @token end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/Cards.rb', line 8 def type @type end |