Class: Kiva::Payment
- Inherits:
-
Object
- Object
- Kiva::Payment
- Includes:
- DynamicInitializer
- Defined in:
- lib/ruby-kiva/payment.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#local_amount ⇒ Object
Returns the value of attribute local_amount.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#rounded_local_amount ⇒ Object
Returns the value of attribute rounded_local_amount.
Instance Method Summary collapse
Methods included from DynamicInitializer
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/ruby-kiva/payment.rb', line 4 def amount @amount end |
#comment ⇒ Object
Returns the value of attribute comment.
4 5 6 |
# File 'lib/ruby-kiva/payment.rb', line 4 def comment @comment end |
#local_amount ⇒ Object
Returns the value of attribute local_amount.
4 5 6 |
# File 'lib/ruby-kiva/payment.rb', line 4 def local_amount @local_amount end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
4 5 6 |
# File 'lib/ruby-kiva/payment.rb', line 4 def payment_id @payment_id end |
#rounded_local_amount ⇒ Object
Returns the value of attribute rounded_local_amount.
4 5 6 |
# File 'lib/ruby-kiva/payment.rb', line 4 def rounded_local_amount @rounded_local_amount end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/ruby-kiva/payment.rb', line 9 def to_s "<Payment due at #{self.due_date} : #{self.amount}>" end |