Class: WebPay::ErrorData
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
-
#error ⇒ Object
attributes accessors.
-
#initialize(hash = {}) ⇒ ErrorData
constructor
A new instance of ErrorData.
Methods inherited from Entity
Constructor Details
#initialize(hash = {}) ⇒ ErrorData
Returns a new instance of ErrorData.
2422 2423 2424 2425 2426 |
# File 'lib/webpay/data_types.rb', line 2422 def initialize(hash = {}) hash = normalize_hash(hash) hash['error'] = WebPay::ErrorBody.new(hash['error']) if hash['error'].is_a?(Hash) @attributes = hash end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
2415 2416 2417 |
# File 'lib/webpay/data_types.rb', line 2415 def attributes @attributes end |
Class Method Details
.fields ⇒ Object
2417 2418 2419 |
# File 'lib/webpay/data_types.rb', line 2417 def self.fields ['error'] end |
Instance Method Details
#error ⇒ Object
attributes accessors
2431 2432 2433 |
# File 'lib/webpay/data_types.rb', line 2431 def error attributes['error'] end |