Class: Payzilla::Revision

Inherits:
Object
  • Object
show all
Defined in:
lib/payzilla/revision.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Revision

Returns a new instance of Revision.



14
15
16
# File 'lib/payzilla/revision.rb', line 14

def initialize(args={})
  args.each{|k,v| send "#{k}=", v}
end

Instance Attribute Details

#dateObject

Simple date instance, for example Date.today



12
# File 'lib/payzilla/revision.rb', line 12

attr_accessor :payments, :date, :id

#idObject

Some unique revision identifier



12
# File 'lib/payzilla/revision.rb', line 12

attr_accessor :payments, :date, :id

#paymentsObject

Array of instances of Payzilla::Payment



12
13
14
# File 'lib/payzilla/revision.rb', line 12

def payments
  @payments
end