Class: Customer
- Inherits:
-
Object
- Object
- Customer
- Defined in:
- lib/touggsl/models/customer.rb
Overview
Representa um cliente inadimplemente
Uma lista de objetos desse tipo é retornada no método get_inadimplementes
Attributes
-
client_id
- ID do cliente -
name
- Nome do cliente -
dias_atraso
- Numero em dias do atraso do pagamento -
segunda_via_cobranca
- Link para a cobranca em atraso
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#dias_atraso ⇒ Object
Returns the value of attribute dias_atraso.
-
#name ⇒ Object
Returns the value of attribute name.
-
#segunda_via_cobranca ⇒ Object
Returns the value of attribute segunda_via_cobranca.
Instance Method Summary collapse
-
#initialize(client_id, name, dias_atraso, segunda_via) ⇒ Customer
constructor
A new instance of Customer.
Constructor Details
#initialize(client_id, name, dias_atraso, segunda_via) ⇒ Customer
Returns a new instance of Customer.
16 17 18 19 20 21 |
# File 'lib/touggsl/models/customer.rb', line 16 def initialize(client_id, name, dias_atraso, segunda_via) @client_id = client_id @name = name @dias_atraso = dias_atraso @segunda_via_cobranca = segunda_via end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
14 15 16 |
# File 'lib/touggsl/models/customer.rb', line 14 def client_id @client_id end |
#dias_atraso ⇒ Object
Returns the value of attribute dias_atraso.
14 15 16 |
# File 'lib/touggsl/models/customer.rb', line 14 def dias_atraso @dias_atraso end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/touggsl/models/customer.rb', line 14 def name @name end |
#segunda_via_cobranca ⇒ Object
Returns the value of attribute segunda_via_cobranca.
14 15 16 |
# File 'lib/touggsl/models/customer.rb', line 14 def segunda_via_cobranca @segunda_via_cobranca end |