Exception: Chain::ResponseObject::TranslateError

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

#sourceObject (readonly)

Returns the value of attribute source.



93
94
95
# File 'lib/chain/response_object.rb', line 93

def source
  @source
end