Class: Giftrocket::Payment
- Inherits:
-
Object
- Object
- Giftrocket::Payment
- Defined in:
- lib/giftrocket/payment.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#fees ⇒ Object
Returns the value of attribute fees.
-
#funding_source_id ⇒ Object
Returns the value of attribute funding_source_id.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Payment
constructor
A new instance of Payment.
Constructor Details
#initialize(attributes) ⇒ Payment
Returns a new instance of Payment.
6 7 8 9 10 11 |
# File 'lib/giftrocket/payment.rb', line 6 def initialize(attributes) self.amount = attributes[:amount] self.fees = attributes[:fees] self.total = attributes[:total] self.funding_source_id = attributes[:funding_source_id] end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/giftrocket/payment.rb', line 4 def amount @amount end |
#fees ⇒ Object
Returns the value of attribute fees.
4 5 6 |
# File 'lib/giftrocket/payment.rb', line 4 def fees @fees end |
#funding_source_id ⇒ Object
Returns the value of attribute funding_source_id.
4 5 6 |
# File 'lib/giftrocket/payment.rb', line 4 def funding_source_id @funding_source_id end |
#total ⇒ Object
Returns the value of attribute total.
4 5 6 |
# File 'lib/giftrocket/payment.rb', line 4 def total @total end |