Class: Braintree::ValidationError

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/validation_error.rb

Overview

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from BaseModule

included

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
  @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}) #{message}>"
end