Exception: Sequence::ResponseObject::TranslateError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sequence/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.



151
152
153
154
155
156
# File 'lib/sequence/response_object.rb', line 151

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.



147
148
149
# File 'lib/sequence/response_object.rb', line 147

def attrib_name
  @attrib_name
end

#raw_valueObject (readonly)

Returns the value of attribute raw_value.



148
149
150
# File 'lib/sequence/response_object.rb', line 148

def raw_value
  @raw_value
end

#sourceObject (readonly)

Returns the value of attribute source.



149
150
151
# File 'lib/sequence/response_object.rb', line 149

def source
  @source
end