Exception: Chain::ResponseObject::DetranslateError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chain/response_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_valueObject (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

#sourceObject (readonly)

Returns the value of attribute source.



106
107
108
# File 'lib/chain/response_object.rb', line 106

def source
  @source
end