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.



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

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.



141
142
143
# File 'lib/sequence/response_object.rb', line 141

def attrib_name
  @attrib_name
end

#raw_valueObject (readonly)

Returns the value of attribute raw_value.



142
143
144
# File 'lib/sequence/response_object.rb', line 142

def raw_value
  @raw_value
end

#sourceObject (readonly)

Returns the value of attribute source.



143
144
145
# File 'lib/sequence/response_object.rb', line 143

def source
  @source
end