Exception: ChupaText::UnknownEncodingError

Inherits:
Error
  • Object
show all
Defined in:
lib/chupa-text/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, encoding) ⇒ UnknownEncodingError

Returns a new instance of UnknownEncodingError.



50
51
52
53
54
# File 'lib/chupa-text/error.rb', line 50

def initialize(data, encoding)
  @data = data
  @encoding = encoding
  super("Unknown encoding data: <#{data.uri}>(#{data.mime_type}): <#{encoding}>")
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



49
50
51
# File 'lib/chupa-text/error.rb', line 49

def data
  @data
end

#encodingObject (readonly)

Returns the value of attribute encoding.



49
50
51
# File 'lib/chupa-text/error.rb', line 49

def encoding
  @encoding
end