Class: RightApi::Client::ErrorDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/right_api_client/client.rb

Overview

A helper class for error details

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(me, pt, ps, rq, rs) ⇒ ErrorDetails

Returns a new instance of ErrorDetails.



633
634
635
636
637
638
639
640
# File 'lib/right_api_client/client.rb', line 633

def initialize(me, pt, ps, rq, rs)

  @method = me
  @path = pt
  @params = ps
  @request = rq
  @response = rs
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



631
632
633
# File 'lib/right_api_client/client.rb', line 631

def method
  @method
end

#paramsObject (readonly)

Returns the value of attribute params.



631
632
633
# File 'lib/right_api_client/client.rb', line 631

def params
  @params
end

#pathObject (readonly)

Returns the value of attribute path.



631
632
633
# File 'lib/right_api_client/client.rb', line 631

def path
  @path
end

#requestObject (readonly)

Returns the value of attribute request.



631
632
633
# File 'lib/right_api_client/client.rb', line 631

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



631
632
633
# File 'lib/right_api_client/client.rb', line 631

def response
  @response
end

Instance Method Details

#codeObject



642
643
644
645
# File 'lib/right_api_client/client.rb', line 642

def code

  @response ? @response.code : nil
end