Class: PagSeguro::Partner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::MassAssignment

#initialize

Instance Attribute Details

#birth_dateObject

Pattern: aaaa-MM-dd



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

def birth_date
  @birth_date
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/pagseguro/partner.rb', line 5

def name
  @name
end

Instance Method Details

#documentsObject



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

def documents
  @documents ||= Documents.new
end

#documents=(_documents = []) ⇒ Object



14
15
16
17
18
# File 'lib/pagseguro/partner.rb', line 14

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