Class: Vpsa::Entity::Administrative::ThirdParty
- Defined in:
- lib/vpsa/entity/administrative/third_party.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
Returns the value of attribute classes.
-
#dataNascimento ⇒ Object
Returns the value of attribute dataNascimento.
-
#documento ⇒ Object
Returns the value of attribute documento.
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#enderecos ⇒ Object
Returns the value of attribute enderecos.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ie ⇒ Object
Returns the value of attribute ie.
-
#nome ⇒ Object
Returns the value of attribute nome.
-
#rg ⇒ Object
Returns the value of attribute rg.
-
#telefones ⇒ Object
Returns the value of attribute telefones.
Instance Method Summary collapse
- #as_parameter ⇒ Object
-
#initialize(*h) ⇒ ThirdParty
constructor
A new instance of ThirdParty.
Constructor Details
#initialize(*h) ⇒ ThirdParty
Returns a new instance of ThirdParty.
9 10 11 12 13 14 15 16 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 9 def initialize(*h) self.emails = Array.new self.enderecos = Array.new self.telefones = Array.new self.classes = Array.new super end |
Instance Attribute Details
#classes ⇒ Object
Returns the value of attribute classes.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def classes @classes end |
#dataNascimento ⇒ Object
Returns the value of attribute dataNascimento.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def dataNascimento @dataNascimento end |
#documento ⇒ Object
Returns the value of attribute documento.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def documento @documento end |
#emails ⇒ Object
Returns the value of attribute emails.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def emails @emails end |
#enderecos ⇒ Object
Returns the value of attribute enderecos.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def enderecos @enderecos end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def id @id end |
#ie ⇒ Object
Returns the value of attribute ie.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def ie @ie end |
#nome ⇒ Object
Returns the value of attribute nome.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def nome @nome end |
#rg ⇒ Object
Returns the value of attribute rg.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def rg @rg end |
#telefones ⇒ Object
Returns the value of attribute telefones.
7 8 9 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 7 def telefones @telefones end |
Instance Method Details
#as_parameter ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/vpsa/entity/administrative/third_party.rb', line 18 def as_parameter variables = instance_variables.map do |name| case name when :@enderecos, :@telefones [name.to_s.tr("@", ""), instance_variable_get(name).map(&:as_parameter)] else [name.to_s.tr("@", ""), instance_variable_get(name)] end end Hash[variables.compact] end |