class SpikePay::ChargeResponseList
Attributes
attributes[R]
Public Class Methods
fields()
click to toggle source
# File lib/spike_pay/data_types.rb, line 265 def self.fields ['object', 'url', 'has_more', 'data'] end
new(hash = {})
click to toggle source
# File lib/spike_pay/data_types.rb, line 270 def initialize(hash = {}) hash = normalize_hash(hash) hash['data'] = hash['data'].is_a?(Array) ? hash['data'].map { |x| SpikePay::ChargeResponse.new(x) if x.is_a?(Hash) } : hash['data'] @attributes = hash end
Public Instance Methods
data()
click to toggle source
# File lib/spike_pay/data_types.rb, line 289 def data attributes['data'] end
has_more()
click to toggle source
# File lib/spike_pay/data_types.rb, line 285 def has_more attributes['has_more'] end
object()
click to toggle source
attributes accessors
# File lib/spike_pay/data_types.rb, line 277 def object attributes['object'] end
url()
click to toggle source
# File lib/spike_pay/data_types.rb, line 281 def url attributes['url'] end