Class: PagSeguro::Sender

Inherits:
Object
  • Object
show all
Includes:
Extensions::EnsureType, Extensions::MassAssignment
Defined in:
lib/pagseguro/sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::EnsureType

#ensure_type

Methods included from Extensions::MassAssignment

#initialize

Instance Attribute Details

#addressObject

Get the sender address



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

def address
  @address
end

#documentObject

Get the sender document



10
11
12
# File 'lib/pagseguro/sender.rb', line 10

def document
  @document
end

#emailObject

Set the sender e-mail.



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

def email
  @email
end

#hashObject

Set sender hash. It’s used to identify the sender.



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

def hash
  @hash
end

#ipObject

Set the sender ip



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

def ip
  @ip
end

#nameObject

Set the sender name.



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

def name
  @name
end

#phoneObject

Get the sender phone.



7
8
9
# File 'lib/pagseguro/sender.rb', line 7

def phone
  @phone
end

Instance Method Details

#documentsObject



33
34
35
# File 'lib/pagseguro/sender.rb', line 33

def documents
  @documents ||= Documents.new
end

#documents=(_documents = []) ⇒ Object



37
38
39
40
41
# File 'lib/pagseguro/sender.rb', line 37

def documents=(_documents=[])
  _documents.each do |document|
    documents << document
  end
end