class SpikePay::ChargeIdRequest
Attributes
attributes[R]
Public Class Methods
create(params)
click to toggle source
# File lib/spike_pay/data_types.rb, line 302 def self.create(params) return params if params.is_a?(self) hash = case params when Hash; params when SpikePay::ChargeResponse; {'id' => params.id} when String; {'id' => 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 297 def self.fields ['id'] end
new(hash = {})
click to toggle source
# File lib/spike_pay/data_types.rb, line 314 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 320 def id attributes['id'] end
id=(value)
click to toggle source
# File lib/spike_pay/data_types.rb, line 325 def id=(value) attributes['id'] = value end