Class: WebPay::ErrorBody

Inherits:
Entity
  • Object
show all
Defined in:
lib/webpay/data_types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#normalize_hash, #to_h, #to_s

Constructor Details

#initialize(hash = {}) ⇒ ErrorBody

Returns a new instance of ErrorBody.



2444
2445
2446
2447
# File 'lib/webpay/data_types.rb', line 2444

def initialize(hash = {})
  hash = normalize_hash(hash)
  @attributes = hash
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



2437
2438
2439
# File 'lib/webpay/data_types.rb', line 2437

def attributes
  @attributes
end

Class Method Details

.fieldsObject



2439
2440
2441
# File 'lib/webpay/data_types.rb', line 2439

def self.fields
  ['message', 'type', 'caused_by', 'code', 'param', 'charge']
end

Instance Method Details

#caused_byObject



2460
2461
2462
# File 'lib/webpay/data_types.rb', line 2460

def caused_by
  attributes['caused_by']
end

#chargeObject



2472
2473
2474
# File 'lib/webpay/data_types.rb', line 2472

def charge
  attributes['charge']
end

#codeObject



2464
2465
2466
# File 'lib/webpay/data_types.rb', line 2464

def code
  attributes['code']
end

#messageObject

attributes accessors



2452
2453
2454
# File 'lib/webpay/data_types.rb', line 2452

def message
  attributes['message']
end

#paramObject



2468
2469
2470
# File 'lib/webpay/data_types.rb', line 2468

def param
  attributes['param']
end

#typeObject



2456
2457
2458
# File 'lib/webpay/data_types.rb', line 2456

def type
  attributes['type']
end