Class: TinyErpApi::Installment
- Inherits:
-
Object
- Object
- TinyErpApi::Installment
- Defined in:
- lib/tiny_erp_api/installment.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#dias ⇒ Object
readonly
Returns the value of attribute dias.
-
#id_forma_recebimento ⇒ Object
readonly
Returns the value of attribute id_forma_recebimento.
-
#id_meio_pagamento ⇒ Object
readonly
Returns the value of attribute id_meio_pagamento.
-
#observacoes ⇒ Object
readonly
Returns the value of attribute observacoes.
-
#valor ⇒ Object
readonly
Returns the value of attribute valor.
Instance Method Summary collapse
-
#initialize(dias: nil, data: nil, valor: nil, observacoes: nil, id_forma_recebimento: nil, id_meio_pagamento: nil) ⇒ Installment
constructor
A new instance of Installment.
- #to_api_hash ⇒ Object
Constructor Details
#initialize(dias: nil, data: nil, valor: nil, observacoes: nil, id_forma_recebimento: nil, id_meio_pagamento: nil) ⇒ Installment
Returns a new instance of Installment.
5 6 7 8 9 10 11 12 |
# File 'lib/tiny_erp_api/installment.rb', line 5 def initialize(dias: nil, data: nil, valor: nil, observacoes: nil, id_forma_recebimento: nil, id_meio_pagamento: nil) @dias = dias @data = data @valor = valor @observacoes = observacoes @id_forma_recebimento = id_forma_recebimento @id_meio_pagamento = id_meio_pagamento end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/tiny_erp_api/installment.rb', line 4 def data @data end |
#dias ⇒ Object (readonly)
Returns the value of attribute dias.
4 5 6 |
# File 'lib/tiny_erp_api/installment.rb', line 4 def dias @dias end |
#id_forma_recebimento ⇒ Object (readonly)
Returns the value of attribute id_forma_recebimento.
4 5 6 |
# File 'lib/tiny_erp_api/installment.rb', line 4 def id_forma_recebimento @id_forma_recebimento end |
#id_meio_pagamento ⇒ Object (readonly)
Returns the value of attribute id_meio_pagamento.
4 5 6 |
# File 'lib/tiny_erp_api/installment.rb', line 4 def id_meio_pagamento @id_meio_pagamento end |
#observacoes ⇒ Object (readonly)
Returns the value of attribute observacoes.
4 5 6 |
# File 'lib/tiny_erp_api/installment.rb', line 4 def observacoes @observacoes end |
#valor ⇒ Object (readonly)
Returns the value of attribute valor.
4 5 6 |
# File 'lib/tiny_erp_api/installment.rb', line 4 def valor @valor end |
Instance Method Details
#to_api_hash ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/tiny_erp_api/installment.rb', line 14 def to_api_hash { dias: dias, data: data, valor: valor, observacoes: observacoes, formaRecebimento: { id: id_forma_recebimento }, meioPagamento: { id: id_meio_pagamento } } end |