Class: Cadooz::Mutable::Payment
- Inherits:
-
Object
- Object
- Cadooz::Mutable::Payment
- Includes:
- Mixins
- Defined in:
- lib/cadooz/models/mutable/payment.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#description ⇒ Object
Returns the value of attribute description.
-
#paid ⇒ Object
Returns the value of attribute paid.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
-
#verified ⇒ Object
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Payment
constructor
A new instance of Payment.
Methods included from Mixins
#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize
Constructor Details
#initialize(args = {}) ⇒ Payment
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cadooz/models/mutable/payment.rb', line 6 def initialize(args={}) @attributes = args[:attributes] @description = args[:description] @paid = args[:paid] @type = args[:type] @value = args[:value] @verified = args[:verified] default_value_for_nil end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/cadooz/models/mutable/payment.rb', line 4 def attributes @attributes end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/cadooz/models/mutable/payment.rb', line 4 def description @description end |
#paid ⇒ Object
Returns the value of attribute paid.
4 5 6 |
# File 'lib/cadooz/models/mutable/payment.rb', line 4 def paid @paid end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/cadooz/models/mutable/payment.rb', line 4 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/cadooz/models/mutable/payment.rb', line 4 def value @value end |
#verified ⇒ Object
Returns the value of attribute verified.
4 5 6 |
# File 'lib/cadooz/models/mutable/payment.rb', line 4 def verified @verified end |