Exception: Chain::ResponseObject::DetranslateError
- Inherits:
-
StandardError
- Object
- StandardError
- Chain::ResponseObject::DetranslateError
- 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) ⇒ DetranslateError
constructor
A new instance of DetranslateError.
Constructor Details
#initialize(attrib_name, raw_value, source) ⇒ DetranslateError
Returns a new instance of DetranslateError.
108 109 110 111 112 113 |
# File 'lib/chain/response_object.rb', line 108 def initialize(attrib_name, raw_value, source) super "Error de-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.
104 105 106 |
# File 'lib/chain/response_object.rb', line 104 def attrib_name @attrib_name end |
#raw_value ⇒ Object (readonly)
Returns the value of attribute raw_value.
105 106 107 |
# File 'lib/chain/response_object.rb', line 105 def raw_value @raw_value end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
106 107 108 |
# File 'lib/chain/response_object.rb', line 106 def source @source end |