Class: Braintree::ValidationError
- Inherits:
-
Object
- Object
- Braintree::ValidationError
- Includes:
- BaseModule
- Defined in:
- lib/braintree/validation_error.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ValidationError
constructor
A new instance of ValidationError.
-
#inspect ⇒ Object
:nodoc:.
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ ValidationError
Returns a new instance of ValidationError.
7 8 9 |
# File 'lib/braintree/validation_error.rb', line 7 def initialize(attributes) set_instance_variables_from_hash attributes end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
5 6 7 |
# File 'lib/braintree/validation_error.rb', line 5 def attribute @attribute end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/braintree/validation_error.rb', line 5 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/braintree/validation_error.rb', line 5 def end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
11 12 13 |
# File 'lib/braintree/validation_error.rb', line 11 def inspect # :nodoc: "#<#{self.class} (#{code}) #{message}>" end |