Class: Kiva::Payment

Inherits:
Object
  • Object
show all
Includes:
DynamicInitializer
Defined in:
lib/ruby-kiva/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DynamicInitializer

included

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/ruby-kiva/payment.rb', line 4

def amount
  @amount
end

#commentObject

Returns the value of attribute comment.



4
5
6
# File 'lib/ruby-kiva/payment.rb', line 4

def comment
  @comment
end

#local_amountObject

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_idObject

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_amountObject

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_sObject



9
10
11
# File 'lib/ruby-kiva/payment.rb', line 9

def to_s
  "<Payment due at #{self.due_date} : #{self.amount}>"
end