Class: Akatus::CreditCard
- Inherits:
-
Object
- Object
- Akatus::CreditCard
- Defined in:
- lib/akatus/credit_card.rb
Instance Attribute Summary collapse
-
#cvv ⇒ Object
Returns the value of attribute cvv.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#flag ⇒ Object
Returns the value of attribute flag.
-
#holder_cpf ⇒ Object
Returns the value of attribute holder_cpf.
-
#holder_name ⇒ Object
Returns the value of attribute holder_name.
-
#holder_phone ⇒ Object
Returns the value of attribute holder_phone.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CreditCard
constructor
A new instance of CreditCard.
Constructor Details
#initialize(attributes = {}) ⇒ CreditCard
Returns a new instance of CreditCard.
6 7 8 9 10 |
# File 'lib/akatus/credit_card.rb', line 6 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Attribute Details
#cvv ⇒ Object
Returns the value of attribute cvv.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def cvv @cvv end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def expires_at @expires_at end |
#flag ⇒ Object
Returns the value of attribute flag.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def flag @flag end |
#holder_cpf ⇒ Object
Returns the value of attribute holder_cpf.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def holder_cpf @holder_cpf end |
#holder_name ⇒ Object
Returns the value of attribute holder_name.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def holder_name @holder_name end |
#holder_phone ⇒ Object
Returns the value of attribute holder_phone.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def holder_phone @holder_phone end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/akatus/credit_card.rb', line 4 def number @number end |