Exception: Bamboo::Client::InvalidResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bamboo/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ InvalidResponseError

Returns a new instance of InvalidResponseError.



50
51
52
53
54
# File 'lib/bamboo/client.rb', line 50

def initialize(response)
  @code = response.code
  @body = response.body
  super("Unexpected response: #{@code}, #{@body}")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



48
49
50
# File 'lib/bamboo/client.rb', line 48

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



48
49
50
# File 'lib/bamboo/client.rb', line 48

def code
  @code
end