class SpikePay::ErrorData

Attributes

attributes[R]

Public Class Methods

fields() click to toggle source
# File lib/spike_pay/data_types.rb, line 383
def self.fields
  ['error']
end
new(hash = {}) click to toggle source
# File lib/spike_pay/data_types.rb, line 388
def initialize(hash = {})
  hash = normalize_hash(hash)
  hash['error'] = SpikePay::ErrorBody.new(hash['error']) if hash['error'].is_a?(Hash)
  @attributes = hash
end

Public Instance Methods

error() click to toggle source

attributes accessors

# File lib/spike_pay/data_types.rb, line 395
def error
  attributes['error']
end