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.



2403
2404
2405
2406
# File 'lib/webpay/data_types.rb', line 2403

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



2396
2397
2398
# File 'lib/webpay/data_types.rb', line 2396

def attributes
  @attributes
end

Class Method Details

.fieldsObject



2398
2399
2400
# File 'lib/webpay/data_types.rb', line 2398

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

Instance Method Details

#caused_byObject



2419
2420
2421
# File 'lib/webpay/data_types.rb', line 2419

def caused_by
  attributes['caused_by']
end

#chargeObject



2431
2432
2433
# File 'lib/webpay/data_types.rb', line 2431

def charge
  attributes['charge']
end

#codeObject



2423
2424
2425
# File 'lib/webpay/data_types.rb', line 2423

def code
  attributes['code']
end

#messageObject

attributes accessors



2411
2412
2413
# File 'lib/webpay/data_types.rb', line 2411

def message
  attributes['message']
end

#paramObject



2427
2428
2429
# File 'lib/webpay/data_types.rb', line 2427

def param
  attributes['param']
end

#typeObject



2415
2416
2417
# File 'lib/webpay/data_types.rb', line 2415

def type
  attributes['type']
end