Class: WebPay::ErrorBody
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
#attributes ⇒ Object
Returns the value of attribute attributes.
2437
2438
2439
|
# File 'lib/webpay/data_types.rb', line 2437
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
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_by ⇒ Object
2460
2461
2462
|
# File 'lib/webpay/data_types.rb', line 2460
def caused_by
attributes['caused_by']
end
|
#charge ⇒ Object
2472
2473
2474
|
# File 'lib/webpay/data_types.rb', line 2472
def charge
attributes['charge']
end
|
#code ⇒ Object
2464
2465
2466
|
# File 'lib/webpay/data_types.rb', line 2464
def code
attributes['code']
end
|
#message ⇒ Object
2452
2453
2454
|
# File 'lib/webpay/data_types.rb', line 2452
def message
attributes['message']
end
|
#param ⇒ Object
2468
2469
2470
|
# File 'lib/webpay/data_types.rb', line 2468
def param
attributes['param']
end
|
#type ⇒ Object
2456
2457
2458
|
# File 'lib/webpay/data_types.rb', line 2456
def type
attributes['type']
end
|