Class: InvisibleCollector::Model::Debt
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::Debt
- Defined in:
- lib/invisible_collector/models/debt.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#credit_total ⇒ Object
Returns the value of attribute credit_total.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#date ⇒ Object
Returns the value of attribute date.
-
#debit_total ⇒ Object
Returns the value of attribute debit_total.
-
#debits ⇒ Object
Returns the value of attribute debits.
-
#due_date ⇒ Object
Returns the value of attribute due_date.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#gross_total ⇒ Object
Returns the value of attribute gross_total.
-
#id ⇒ Object
Returns the value of attribute id.
-
#items ⇒ Object
Returns the value of attribute items.
-
#net_total ⇒ Object
Returns the value of attribute net_total.
-
#number ⇒ Object
Returns the value of attribute number.
-
#paid_at ⇒ Object
Returns the value of attribute paid_at.
-
#paid_total ⇒ Object
Returns the value of attribute paid_total.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tax ⇒ Object
Returns the value of attribute tax.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Debt
constructor
A new instance of Debt.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ Debt
Returns a new instance of Debt.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/invisible_collector/models/debt.rb', line 26 def initialize( = {}) = .with_indifferent_access @id = [:id] @number = [:number] @external_id = [:external_id] @type = [:type] @status = [:status] @date = [:date] @due_date = [:due_date] @paid_at = [:paid_at] @customer = [:customer] @items = [:items] @attributes = [:attributes] @net_total = [:net_total] @tax = [:tax] @gross_total = [:gross_total] @paid_total = [:paid_total] @debit_total = [:debit_total] @credit_total = [:credit_total] @currency = [:currency] @debits = [:debits] end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
23 24 25 |
# File 'lib/invisible_collector/models/debt.rb', line 23 def attributes @attributes end |
#credit_total ⇒ Object
Returns the value of attribute credit_total.
21 22 23 |
# File 'lib/invisible_collector/models/debt.rb', line 21 def credit_total @credit_total end |
#currency ⇒ Object
Returns the value of attribute currency.
22 23 24 |
# File 'lib/invisible_collector/models/debt.rb', line 22 def currency @currency end |
#customer ⇒ Object
Returns the value of attribute customer.
14 15 16 |
# File 'lib/invisible_collector/models/debt.rb', line 14 def customer @customer end |
#date ⇒ Object
Returns the value of attribute date.
11 12 13 |
# File 'lib/invisible_collector/models/debt.rb', line 11 def date @date end |
#debit_total ⇒ Object
Returns the value of attribute debit_total.
20 21 22 |
# File 'lib/invisible_collector/models/debt.rb', line 20 def debit_total @debit_total end |
#debits ⇒ Object
Returns the value of attribute debits.
24 25 26 |
# File 'lib/invisible_collector/models/debt.rb', line 24 def debits @debits end |
#due_date ⇒ Object
Returns the value of attribute due_date.
12 13 14 |
# File 'lib/invisible_collector/models/debt.rb', line 12 def due_date @due_date end |
#external_id ⇒ Object
Returns the value of attribute external_id.
8 9 10 |
# File 'lib/invisible_collector/models/debt.rb', line 8 def external_id @external_id end |
#gross_total ⇒ Object
Returns the value of attribute gross_total.
18 19 20 |
# File 'lib/invisible_collector/models/debt.rb', line 18 def gross_total @gross_total end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/invisible_collector/models/debt.rb', line 6 def id @id end |
#items ⇒ Object
Returns the value of attribute items.
15 16 17 |
# File 'lib/invisible_collector/models/debt.rb', line 15 def items @items end |
#net_total ⇒ Object
Returns the value of attribute net_total.
16 17 18 |
# File 'lib/invisible_collector/models/debt.rb', line 16 def net_total @net_total end |
#number ⇒ Object
Returns the value of attribute number.
7 8 9 |
# File 'lib/invisible_collector/models/debt.rb', line 7 def number @number end |
#paid_at ⇒ Object
Returns the value of attribute paid_at.
13 14 15 |
# File 'lib/invisible_collector/models/debt.rb', line 13 def paid_at @paid_at end |
#paid_total ⇒ Object
Returns the value of attribute paid_total.
19 20 21 |
# File 'lib/invisible_collector/models/debt.rb', line 19 def paid_total @paid_total end |
#status ⇒ Object
Returns the value of attribute status.
10 11 12 |
# File 'lib/invisible_collector/models/debt.rb', line 10 def status @status end |
#tax ⇒ Object
Returns the value of attribute tax.
17 18 19 |
# File 'lib/invisible_collector/models/debt.rb', line 17 def tax @tax end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/invisible_collector/models/debt.rb', line 9 def type @type end |