Class: Cards::Card

Inherits:
Object
  • Object
show all
Defined in:
lib/Cards.rb

Overview

noinspection ALL

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @name = get_arg(options, 'name_on_card')
  @exp_year = get_arg(options, 'card_exp_year')
  @reference = get_arg(options, 'card_reference')
  @exp_month = get_arg(options, 'card_exp_month')
  @expired = get_arg(options, 'expired')
  @fingerprint = get_arg(options, 'card_fingerprint')
  @isin = get_arg(options, 'card_isin')
  @type = get_arg(options, 'card_type')
  @issuer = get_arg(options, 'card_issuer')
  @brand = get_arg(options, 'card_brand')
  @token = get_arg(options, 'card_token')
  @nickname = get_arg(options, 'nickname')
  @number = get_arg(options, 'card_number')
  @deleted = get_arg(options, 'deleted')
end

Instance Attribute Details

#brandObject (readonly)

Returns the value of attribute brand.



8
9
10
# File 'lib/Cards.rb', line 8

def brand
  @brand
end

#deletedObject (readonly)

Returns the value of attribute deleted.



8
9
10
# File 'lib/Cards.rb', line 8

def deleted
  @deleted
end

#exp_monthObject (readonly)

Returns the value of attribute exp_month.



8
9
10
# File 'lib/Cards.rb', line 8

def exp_month
  @exp_month
end

#exp_yearObject (readonly)

Returns the value of attribute exp_year.



8
9
10
# File 'lib/Cards.rb', line 8

def exp_year
  @exp_year
end

#expiredObject (readonly)

Returns the value of attribute expired.



8
9
10
# File 'lib/Cards.rb', line 8

def expired
  @expired
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



8
9
10
# File 'lib/Cards.rb', line 8

def fingerprint
  @fingerprint
end

#isinObject (readonly)

Returns the value of attribute isin.



8
9
10
# File 'lib/Cards.rb', line 8

def isin
  @isin
end

#issuerObject (readonly)

Returns the value of attribute issuer.



8
9
10
# File 'lib/Cards.rb', line 8

def issuer
  @issuer
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/Cards.rb', line 8

def name
  @name
end

#nicknameObject (readonly)

Returns the value of attribute nickname.



8
9
10
# File 'lib/Cards.rb', line 8

def nickname
  @nickname
end

#numberObject (readonly)

Returns the value of attribute number.



8
9
10
# File 'lib/Cards.rb', line 8

def number
  @number
end

#referenceObject (readonly)

Returns the value of attribute reference.



8
9
10
# File 'lib/Cards.rb', line 8

def reference
  @reference
end

#tokenObject (readonly)

Returns the value of attribute token.



8
9
10
# File 'lib/Cards.rb', line 8

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/Cards.rb', line 8

def type
  @type
end