Exception: SemaphoreClient::Exceptions::ResponseError

Inherits:
Base
  • Object
show all
Defined in:
lib/semaphore_client/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ ResponseError

Returns a new instance of ResponseError.



10
11
12
13
14
# File 'lib/semaphore_client/exceptions.rb', line 10

def initialize(env)
  @env = env

  super(env[:message])
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



8
9
10
# File 'lib/semaphore_client/exceptions.rb', line 8

def env
  @env
end