Class: PagSeguro::Company
- Inherits:
-
Object
- Object
- PagSeguro::Company
- Includes:
- Extensions::EnsureType, Extensions::MassAssignment
- Defined in:
- lib/pagseguro/company.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#partner ⇒ Object
Returns the value of attribute partner.
-
#website_url ⇒ Object
Returns the value of attribute website_url.
Instance Method Summary collapse
- #documents ⇒ Object
- #documents=(_documents = []) ⇒ Object
- #phones ⇒ Object
- #phones=(_phones = []) ⇒ Object
Methods included from Extensions::EnsureType
Methods included from Extensions::MassAssignment
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
10 11 12 |
# File 'lib/pagseguro/company.rb', line 10 def address @address end |
#display_name ⇒ Object
Returns the value of attribute display_name.
7 8 9 |
# File 'lib/pagseguro/company.rb', line 7 def display_name @display_name end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/pagseguro/company.rb', line 6 def name @name end |
#partner ⇒ Object
Returns the value of attribute partner.
11 12 13 |
# File 'lib/pagseguro/company.rb', line 11 def partner @partner end |
#website_url ⇒ Object
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
#documents ⇒ Object
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 |
#phones ⇒ Object
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 |