Exception: ServiceException

Inherits:
Exception
  • Object
show all
Defined in:
lib/service_exception.rb

Overview

Represents a negative service response

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ServiceException

Returns a new instance of ServiceException.



5
6
7
# File 'lib/service_exception.rb', line 5

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



3
4
5
# File 'lib/service_exception.rb', line 3

def response
  @response
end