Class: Giftrocket::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/giftrocket/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/giftrocket/payment.rb', line 4

def amount
  @amount
end

#feesObject

Returns the value of attribute fees.



4
5
6
# File 'lib/giftrocket/payment.rb', line 4

def fees
  @fees
end

#funding_source_idObject

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

#totalObject

Returns the value of attribute total.



4
5
6
# File 'lib/giftrocket/payment.rb', line 4

def total
  @total
end