class SpikePay::ChargeResponse

Attributes

attributes[R]

Public Class Methods

fields() click to toggle source
# File lib/spike_pay/data_types.rb, line 178
def self.fields
  ['id', 'object', 'livemode', 'amount', 'created', 'currency', 'paid', 'captured', 'refunded', 'amount_refunded', 'refunds']
end
new(hash = {}) click to toggle source
# File lib/spike_pay/data_types.rb, line 183
def initialize(hash = {})
  hash = normalize_hash(hash)
  @attributes = hash
end

Public Instance Methods

amount() click to toggle source
# File lib/spike_pay/data_types.rb, line 201
def amount
  attributes['amount']
end
amount_refunded() click to toggle source
# File lib/spike_pay/data_types.rb, line 225
def amount_refunded
  attributes['amount_refunded']
end
captured() click to toggle source
# File lib/spike_pay/data_types.rb, line 217
def captured
  attributes['captured']
end
created() click to toggle source
# File lib/spike_pay/data_types.rb, line 205
def created
  attributes['created']
end
currency() click to toggle source
# File lib/spike_pay/data_types.rb, line 209
def currency
  attributes['currency']
end
id() click to toggle source

attributes accessors

# File lib/spike_pay/data_types.rb, line 189
def id
  attributes['id']
end
livemode() click to toggle source
# File lib/spike_pay/data_types.rb, line 197
def livemode
  attributes['livemode']
end
object() click to toggle source
# File lib/spike_pay/data_types.rb, line 193
def object
  attributes['object']
end
paid() click to toggle source
refunded() click to toggle source
# File lib/spike_pay/data_types.rb, line 221
def refunded
  attributes['refunded']
end
refunds() click to toggle source
# File lib/spike_pay/data_types.rb, line 229
def refunds
  attributes['refunds']
end