Class: WebmaniabrNfeRuby::Models::Client
- Inherits:
-
Object
- Object
- WebmaniabrNfeRuby::Models::Client
- Defined in:
- lib/models/client.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#cep ⇒ Object
Returns the value of attribute cep.
-
#city ⇒ Object
Returns the value of attribute city.
-
#complement ⇒ Object
Returns the value of attribute complement.
-
#cpf ⇒ Object
Returns the value of attribute cpf.
-
#mail ⇒ Object
Returns the value of attribute mail.
-
#name ⇒ Object
Returns the value of attribute name.
-
#neighborhood ⇒ Object
Returns the value of attribute neighborhood.
-
#number ⇒ Object
Returns the value of attribute number.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#uf ⇒ Object
Returns the value of attribute uf.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #to_hash ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/models/client.rb', line 7 def initialize( = {}) @cpf = [:cpf] @name = [:name] @address = [:address] @complement = [:complement] @number = [:number] @neighborhood = [:neighborhood] @city = [:city] @uf = [:uf] @cep = [:cep] @phone = [:phone] @mail = [:mail] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/models/client.rb', line 4 def address @address end |
#cep ⇒ Object
Returns the value of attribute cep.
4 5 6 |
# File 'lib/models/client.rb', line 4 def cep @cep end |
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/models/client.rb', line 4 def city @city end |
#complement ⇒ Object
Returns the value of attribute complement.
4 5 6 |
# File 'lib/models/client.rb', line 4 def complement @complement end |
#cpf ⇒ Object
Returns the value of attribute cpf.
4 5 6 |
# File 'lib/models/client.rb', line 4 def cpf @cpf end |
#mail ⇒ Object
Returns the value of attribute mail.
4 5 6 |
# File 'lib/models/client.rb', line 4 def mail @mail end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/models/client.rb', line 4 def name @name end |
#neighborhood ⇒ Object
Returns the value of attribute neighborhood.
4 5 6 |
# File 'lib/models/client.rb', line 4 def neighborhood @neighborhood end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/models/client.rb', line 4 def number @number end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/models/client.rb', line 4 def phone @phone end |
#uf ⇒ Object
Returns the value of attribute uf.
4 5 6 |
# File 'lib/models/client.rb', line 4 def uf @uf end |
Instance Method Details
#to_hash ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/models/client.rb', line 21 def to_hash { cpf: @cpf, nome_completo: @name, endereco: @address, complemento: @complement, numero: @number, bairro: @neighborhood, cidade: @city, uf: @uf, cep: @cep, phone: @phone, email: @mail } end |