Class: Esignatur::Api::RequestInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/esignatur/api/request_info.rb

Overview

api response wrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_method, url, headers) ⇒ RequestInfo

Returns a new instance of RequestInfo.



9
10
11
12
13
# File 'lib/esignatur/api/request_info.rb', line 9

def initialize(http_method, url, headers)
  @url = url
  @headers = headers
  @http_method = http_method
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



7
8
9
# File 'lib/esignatur/api/request_info.rb', line 7

def headers
  @headers
end

#http_methodObject (readonly)

Returns the value of attribute http_method.



7
8
9
# File 'lib/esignatur/api/request_info.rb', line 7

def http_method
  @http_method
end

#urlObject (readonly)

Returns the value of attribute url.



7
8
9
# File 'lib/esignatur/api/request_info.rb', line 7

def url
  @url
end