Class: PagSeguro::Holder

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/pagseguro/holder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, birthdate) ⇒ Holder

Returns a new instance of Holder.



19
20
21
22
# File 'lib/pagseguro/holder.rb', line 19

def initialize(name, birthdate)
  @name = name
  @birthdate = birthdate
end

Instance Attribute Details

#birthdateObject

Set the credit card holder bithdate.



11
12
13
# File 'lib/pagseguro/holder.rb', line 11

def birthdate
  @birthdate
end

#documentObject

Set the credit card holder document.



14
15
16
# File 'lib/pagseguro/holder.rb', line 14

def document
  @document
end

#nameObject

Set the credit card holder name.



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

def name
  @name
end

#phoneObject

Get the sender phone.



17
18
19
# File 'lib/pagseguro/holder.rb', line 17

def phone
  @phone
end