class DuffelAPI::Resources::Payment
Attributes
amount[R]
created_at[R]
currency[R]
id[R]
type[R]
Public Class Methods
new(object, response = nil)
click to toggle source
Calls superclass method
DuffelAPI::Resources::BaseResource::new
# File lib/duffel_api/resources/payment.rb, line 13 def initialize(object, response = nil) @object = object @amount = object["amount"] @created_at = object["created_at"] @currency = object["currency"] @id = object["id"] @type = object["type"] super(object, response) end