Exception: Egnyte::EgnyteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/egnyte/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EgnyteError

Returns a new instance of EgnyteError.



3
4
5
# File 'lib/egnyte/errors.rb', line 3

def initialize(data)
  @data = data
end

Instance Method Details

#[](key) ⇒ Object



7
8
9
# File 'lib/egnyte/errors.rb', line 7

def [](key)
  @data[key]
end