Class: Braintree::ValidationError
- Inherits:
-
Object
- Object
- Braintree::ValidationError
- Includes:
- BaseModule
- Defined in:
- lib/braintree/validation_error.rb
Overview
Instance Attribute Summary (collapse)
-
- (Object) attribute
readonly
Returns the value of attribute attribute.
-
- (Object) code
readonly
Returns the value of attribute code.
-
- (Object) message
readonly
Returns the value of attribute message.
Instance Method Summary (collapse)
-
- (ValidationError) initialize(attributes)
constructor
A new instance of ValidationError.
-
- (Object) inspect
: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
- (ValidationError) initialize(attributes)
A new instance of ValidationError
8 9 10 |
# File 'lib/braintree/validation_error.rb', line 8 def initialize(attributes) set_instance_variables_from_hash attributes end |
Instance Attribute Details
- (Object) attribute (readonly)
Returns the value of attribute attribute
6 7 8 |
# File 'lib/braintree/validation_error.rb', line 6 def attribute @attribute end |
- (Object) code (readonly)
Returns the value of attribute code
6 7 8 |
# File 'lib/braintree/validation_error.rb', line 6 def code @code end |
- (Object) message (readonly)
Returns the value of attribute message
6 7 8 |
# File 'lib/braintree/validation_error.rb', line 6 def @message end |
Instance Method Details
- (Object) inspect
:nodoc:
12 13 14 |
# File 'lib/braintree/validation_error.rb', line 12 def inspect # :nodoc: "#<#{self.class} (#{code}) #{}>" end |