Class: Akatus::CreditCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cvvObject

Returns the value of attribute cvv.



4
5
6
# File 'lib/akatus/credit_card.rb', line 4

def cvv
  @cvv
end

#expires_atObject

Returns the value of attribute expires_at.



4
5
6
# File 'lib/akatus/credit_card.rb', line 4

def expires_at
  @expires_at
end

#flagObject

Returns the value of attribute flag.



4
5
6
# File 'lib/akatus/credit_card.rb', line 4

def flag
  @flag
end

#holder_cpfObject

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_nameObject

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_phoneObject

Returns the value of attribute holder_phone.



4
5
6
# File 'lib/akatus/credit_card.rb', line 4

def holder_phone
  @holder_phone
end

#numberObject

Returns the value of attribute number.



4
5
6
# File 'lib/akatus/credit_card.rb', line 4

def number
  @number
end