Class: Cadooz::Mutable::Payment

Inherits:
Object
  • Object
show all
Includes:
Mixins
Defined in:
lib/cadooz/models/mutable/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



4
5
6
# File 'lib/cadooz/models/mutable/payment.rb', line 4

def attributes
  @attributes
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/cadooz/models/mutable/payment.rb', line 4

def description
  @description
end

Returns the value of attribute paid.



4
5
6
# File 'lib/cadooz/models/mutable/payment.rb', line 4

def paid
  @paid
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/cadooz/models/mutable/payment.rb', line 4

def type
  @type
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/cadooz/models/mutable/payment.rb', line 4

def value
  @value
end

#verifiedObject

Returns the value of attribute verified.



4
5
6
# File 'lib/cadooz/models/mutable/payment.rb', line 4

def verified
  @verified
end