Class: Payzilla::Revision
- Inherits:
-
Object
- Object
- Payzilla::Revision
- Defined in:
- lib/payzilla/revision.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Simple date instance, for example Date.today.
-
#id ⇒ Object
Some unique revision identifier.
-
#payments ⇒ Object
Array of instances of Payzilla::Payment.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Revision
constructor
A new instance of Revision.
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
#date ⇒ Object
Simple date instance, for example Date.today
12 |
# File 'lib/payzilla/revision.rb', line 12 attr_accessor :payments, :date, :id |
#id ⇒ Object
Some unique revision identifier
12 |
# File 'lib/payzilla/revision.rb', line 12 attr_accessor :payments, :date, :id |
#payments ⇒ Object
Array of instances of Payzilla::Payment
12 13 14 |
# File 'lib/payzilla/revision.rb', line 12 def payments @payments end |