Exception: MensarioApiException

Inherits:
MensarioException show all
Defined in:
lib/mensario/api_exception.rb

Overview

Exception for raise errors from api

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ MensarioApiException

Initialize the mensario exception class

Parameters:

  • status

    response code from API



9
10
11
# File 'lib/mensario/api_exception.rb', line 9

def initialize(status)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Response code from API



4
5
6
# File 'lib/mensario/api_exception.rb', line 4

def status
  @status
end