class SpikePay::ChargeRequestWithAmount
Attributes
attributes[R]
Public Class Methods
create(params)
click to toggle source
# File lib/spike_pay/data_types.rb, line 97 def self.create(params) return params if params.is_a?(self) hash = case params when Hash; params else raise SpikePay::InvalidRequestError.new("#{self} does not accept the given value", params) end self.new(hash) end
fields()
click to toggle source
# File lib/spike_pay/data_types.rb, line 94 def self.fields ['id'] end
new(hash = {})
click to toggle source
# File lib/spike_pay/data_types.rb, line 107 def initialize(hash = {}) hash = normalize_hash(hash) @attributes = hash end
Public Instance Methods
id()
click to toggle source
attributes accessors
# File lib/spike_pay/data_types.rb, line 113 def id attributes['id'] end