Class: Access::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/access/error.rb

Defined Under Namespace

Classes: AuthenticationError, InvalidResponseFormat, NoAccessToken, NoData, Timeout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_status, response_code, response_message = nil) ⇒ Error

Returns a new instance of Error.



11
12
13
14
15
# File 'lib/access/error.rb', line 11

def initialize(response_status, response_code, response_message = nil)
  @status_code = response_code
  @status = response_status
  @message = response_message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/access/error.rb', line 9

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/access/error.rb', line 9

def status
  @status
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



9
10
11
# File 'lib/access/error.rb', line 9

def status_code
  @status_code
end