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.
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
#attributes ⇒ Object
Returns the value of attribute attributes.
2396
2397
2398
|
# File 'lib/webpay/data_types.rb', line 2396
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
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_by ⇒ Object
2419
2420
2421
|
# File 'lib/webpay/data_types.rb', line 2419
def caused_by
attributes['caused_by']
end
|
#charge ⇒ Object
2431
2432
2433
|
# File 'lib/webpay/data_types.rb', line 2431
def charge
attributes['charge']
end
|
#code ⇒ Object
2423
2424
2425
|
# File 'lib/webpay/data_types.rb', line 2423
def code
attributes['code']
end
|
#message ⇒ Object
2411
2412
2413
|
# File 'lib/webpay/data_types.rb', line 2411
def message
attributes['message']
end
|
#param ⇒ Object
2427
2428
2429
|
# File 'lib/webpay/data_types.rb', line 2427
def param
attributes['param']
end
|
#type ⇒ Object
2415
2416
2417
|
# File 'lib/webpay/data_types.rb', line 2415
def type
attributes['type']
end
|