Exception: TeamworkApi::TeamworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/teamwork_api/error.rb

Overview

baser error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ TeamworkError

Returns a new instance of TeamworkError.



10
11
12
13
# File 'lib/teamwork_api/error.rb', line 10

def initialize(message, response = nil)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/teamwork_api/error.rb', line 8

def response
  @response
end