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