Exception: SCB::HTTP::Exception

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/scb/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ Exception



47
48
49
50
# File 'lib/scb/http.rb', line 47

def initialize(response = nil)
  @response = response
  @message  = response.message if response
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



45
46
47
# File 'lib/scb/http.rb', line 45

def message
  @message
end

#responseObject

Returns the value of attribute response.



44
45
46
# File 'lib/scb/http.rb', line 44

def response
  @response
end