Class: PR::Pin::Adapter::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/pr/pin/adapter/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, result) ⇒ ResponseError

Returns a new instance of ResponseError.



10
11
12
13
14
15
# File 'lib/pr/pin/adapter/errors.rb', line 10

def initialize(response, result)
  @response = response
  @result = result

  super(result[:error_description])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/pr/pin/adapter/errors.rb', line 8

def response
  @response
end

#resultObject (readonly)

Returns the value of attribute result.



8
9
10
# File 'lib/pr/pin/adapter/errors.rb', line 8

def result
  @result
end