Exception: Mat::HTTP::Exception

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ Exception

Returns a new instance of Exception.



39
40
41
42
# File 'lib/mat/http.rb', line 39

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



37
38
39
# File 'lib/mat/http.rb', line 37

def message
  @message
end

#responseObject

Returns the value of attribute response.



36
37
38
# File 'lib/mat/http.rb', line 36

def response
  @response
end