Class: PagSeguro::Company

Inherits:
Object
  • Object
show all
Includes:
Extensions::EnsureType, Extensions::MassAssignment
Defined in:
lib/pagseguro/company.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

Returns the value of attribute address.



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

def address
  @address
end

#display_nameObject

Returns the value of attribute display_name.



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

def display_name
  @display_name
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/pagseguro/company.rb', line 6

def name
  @name
end

#partnerObject

Returns the value of attribute partner.



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

def partner
  @partner
end

#website_urlObject

Returns the value of attribute website_url.



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

def website_url
  @website_url
end

Instance Method Details

#documentsObject



31
32
33
# File 'lib/pagseguro/company.rb', line 31

def documents
  @documents ||= Documents.new
end

#documents=(_documents = []) ⇒ Object



35
36
37
38
39
# File 'lib/pagseguro/company.rb', line 35

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

#phonesObject



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

def phones
  @phones ||= Phones.new
end

#phones=(_phones = []) ⇒ Object



25
26
27
28
29
# File 'lib/pagseguro/company.rb', line 25

def phones=(_phones=[])
  _phones.each do |phone|
    phones << ensure_type(Phone, phone)
  end
end