Class: InvisibleCollector::Model::Debit
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::Debit
- Defined in:
- lib/invisible_collector/models/debit.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#gross_total ⇒ Object
Returns the value of attribute gross_total.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Debit
constructor
A new instance of Debit.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ Debit
Returns a new instance of Debit.
10 11 12 13 14 15 |
# File 'lib/invisible_collector/models/debit.rb', line 10 def initialize( = {}) = .with_indifferent_access @number = [:number] @date = [:date] @gross_total = [:gross_total] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'lib/invisible_collector/models/debit.rb', line 7 def date @date end |
#gross_total ⇒ Object
Returns the value of attribute gross_total.
8 9 10 |
# File 'lib/invisible_collector/models/debit.rb', line 8 def gross_total @gross_total end |
#number ⇒ Object
Returns the value of attribute number.
6 7 8 |
# File 'lib/invisible_collector/models/debit.rb', line 6 def number @number end |