Class: PagSeguro::Sender

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
ActiveModel::Validations
Defined in:
lib/pagseguro/sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Sender

Returns a new instance of Sender.



26
27
28
29
30
# File 'lib/pagseguro/sender.rb', line 26

def initialize(options = {})
  @email = options[:email]
  @name = options[:name]
  @hash_id = options[:hash_id]
end

Instance Attribute Details

#documentObject

Set the CPF document.



21
22
23
# File 'lib/pagseguro/sender.rb', line 21

def document
  @document
end

#emailObject

Set the sender e-mail.



12
13
14
# File 'lib/pagseguro/sender.rb', line 12

def email
  @email
end

#hash_idObject

Set the hash identifier.



18
19
20
# File 'lib/pagseguro/sender.rb', line 18

def hash_id
  @hash_id
end

#nameObject

Set the sender name.



15
16
17
# File 'lib/pagseguro/sender.rb', line 15

def name
  @name
end

#phoneObject

Get the sender phone.



24
25
26
# File 'lib/pagseguro/sender.rb', line 24

def phone
  @phone
end