class PagSeguro::Sender

Attributes

address[R]

Get the sender address

document[R]

Get the sender document

email[RW]

Set the sender e-mail.

hash[RW]

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

ip[RW]

Set the sender ip

name[RW]

Set the sender name.

phone[R]

Get the sender phone.

Public Instance Methods

address=(address) click to toggle source

Set the sender address.

# File lib/pagseguro/sender.rb, line 49
def address=(address)
  @address = ensure_type(Address, address)
end
document=(document) click to toggle source

Set the sender document.

# File lib/pagseguro/sender.rb, line 44
def document=(document)
  documents << ensure_type(Document, document)
end
documents() click to toggle source
# File lib/pagseguro/sender.rb, line 33
def documents
  @documents ||= Documents.new
end
documents=(_documents=[]) click to toggle source
# File lib/pagseguro/sender.rb, line 37
def documents=(_documents=[])
  _documents.each do |document|
    documents << document
  end
end
phone=(phone) click to toggle source

Set the sender phone.

# File lib/pagseguro/sender.rb, line 29
def phone=(phone)
  @phone = ensure_type(Phone, phone)
end