Exception: ChupaText::EncryptedError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EncryptedError

Returns a new instance of EncryptedError.



23
24
25
26
# File 'lib/chupa-text/error.rb', line 23

def initialize(data)
  @data = data
  super("Encrypted data: <#{data.path}>(#{data.mime_type})")
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



22
23
24
# File 'lib/chupa-text/error.rb', line 22

def data
  @data
end