Exception: Chain::ResponseObject::TranslateError
- Inherits:
-
StandardError
- Object
- StandardError
- Chain::ResponseObject::TranslateError
- Defined in:
- lib/chain/response_object.rb
Instance Attribute Summary collapse
-
#attrib_name ⇒ Object
readonly
Returns the value of attribute attrib_name.
-
#raw_value ⇒ Object
readonly
Returns the value of attribute raw_value.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(attrib_name, raw_value, source) ⇒ TranslateError
constructor
A new instance of TranslateError.
Constructor Details
#initialize(attrib_name, raw_value, source) ⇒ TranslateError
Returns a new instance of TranslateError.
95 96 97 98 99 100 |
# File 'lib/chain/response_object.rb', line 95 def initialize(attrib_name, raw_value, source) super "Error translating attrib #{attrib_name}: #{source}" @attrib_name = attrib_name @raw_value = raw_value @source = source end |
Instance Attribute Details
#attrib_name ⇒ Object (readonly)
Returns the value of attribute attrib_name.
91 92 93 |
# File 'lib/chain/response_object.rb', line 91 def attrib_name @attrib_name end |
#raw_value ⇒ Object (readonly)
Returns the value of attribute raw_value.
92 93 94 |
# File 'lib/chain/response_object.rb', line 92 def raw_value @raw_value end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
93 94 95 |
# File 'lib/chain/response_object.rb', line 93 def source @source end |