Class: Vantiv::Api::Card
- Inherits:
-
Object
- Object
- Vantiv::Api::Card
- Defined in:
- lib/vantiv/api/card.rb
Instance Attribute Summary collapse
- #account_number ⇒ Object
- #card_number ⇒ Object
- #cvv ⇒ Object
-
#expiry_month ⇒ Object
Returns the value of attribute expiry_month.
-
#expiry_year ⇒ Object
Returns the value of attribute expiry_year.
-
#payment_account_id ⇒ Object
Returns the value of attribute payment_account_id.
-
#paypage_registration_id ⇒ Object
Returns the value of attribute paypage_registration_id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(expiry_month: nil, expiry_year: nil, cvv: nil, card_number: nil, account_number: nil, paypage_registration_id: nil) ⇒ Card
constructor
A new instance of Card.
Constructor Details
#initialize(expiry_month: nil, expiry_year: nil, cvv: nil, card_number: nil, account_number: nil, paypage_registration_id: nil) ⇒ Card
Returns a new instance of Card.
7 8 9 10 11 12 13 14 |
# File 'lib/vantiv/api/card.rb', line 7 def initialize(expiry_month: nil, expiry_year: nil, cvv: nil, card_number: nil, account_number: nil, paypage_registration_id: nil) @expiry_month = expiry_month @expiry_year = expiry_year @cvv = cvv @card_number = card_number @account_number = account_number @paypage_registration_id = paypage_registration_id end |
Instance Attribute Details
#account_number ⇒ Object
28 29 30 |
# File 'lib/vantiv/api/card.rb', line 28 def account_number format_card_number(@account_number) if @account_number end |
#card_number ⇒ Object
24 25 26 |
# File 'lib/vantiv/api/card.rb', line 24 def card_number format_card_number(@card_number) if @card_number end |
#cvv ⇒ Object
32 33 34 |
# File 'lib/vantiv/api/card.rb', line 32 def cvv @cvv.to_s if @cvv end |
#expiry_month ⇒ Object
Returns the value of attribute expiry_month.
5 6 7 |
# File 'lib/vantiv/api/card.rb', line 5 def expiry_month @expiry_month end |
#expiry_year ⇒ Object
Returns the value of attribute expiry_year.
5 6 7 |
# File 'lib/vantiv/api/card.rb', line 5 def expiry_year @expiry_year end |
#payment_account_id ⇒ Object
Returns the value of attribute payment_account_id.
5 6 7 |
# File 'lib/vantiv/api/card.rb', line 5 def payment_account_id @payment_account_id end |
#paypage_registration_id ⇒ Object
Returns the value of attribute paypage_registration_id.
5 6 7 |
# File 'lib/vantiv/api/card.rb', line 5 def paypage_registration_id @paypage_registration_id end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/vantiv/api/card.rb', line 5 def type @type end |