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