Class: Async::Matrix::ApplicationService::ErrorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/async/matrix/application_service/error_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ErrorResponse

Returns a new instance of ErrorResponse.



15
16
17
18
# File 'lib/async/matrix/application_service/error_response.rb', line 15

def initialize(data)
	@errcode = data["errcode"]
	@error   = data["error"]
end

Instance Attribute Details

#errcodeObject (readonly)

Returns the value of attribute errcode.



13
14
15
# File 'lib/async/matrix/application_service/error_response.rb', line 13

def errcode
  @errcode
end

#errorObject (readonly)

Returns the value of attribute error.



13
14
15
# File 'lib/async/matrix/application_service/error_response.rb', line 13

def error
  @error
end