Class: MoesifApi::HttpRequest
- Inherits:
-
Object
- Object
- MoesifApi::HttpRequest
- Defined in:
- lib/moesif_api/http/http_request.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#password ⇒ Object
Returns the value of attribute password.
-
#query_url ⇒ Object
Returns the value of attribute query_url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(http_method, query_url, headers: nil, parameters: nil, username: nil, password: nil) ⇒ HttpRequest
constructor
The constructor.
Constructor Details
#initialize(http_method, query_url, headers: nil, parameters: nil, username: nil, password: nil) ⇒ HttpRequest
The constructor.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/moesif_api/http/http_request.rb', line 14 def initialize(http_method, query_url, headers: nil, parameters: nil, username: nil, password: nil) @http_method = http_method @query_url = query_url @headers = headers @parameters = parameters @username = username @password = password end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/moesif_api/http/http_request.rb', line 5 def headers @headers end |
#http_method ⇒ Object
Returns the value of attribute http_method.
5 6 7 |
# File 'lib/moesif_api/http/http_request.rb', line 5 def http_method @http_method end |
#parameters ⇒ Object
Returns the value of attribute parameters.
5 6 7 |
# File 'lib/moesif_api/http/http_request.rb', line 5 def parameters @parameters end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/moesif_api/http/http_request.rb', line 5 def password @password end |
#query_url ⇒ Object
Returns the value of attribute query_url.
5 6 7 |
# File 'lib/moesif_api/http/http_request.rb', line 5 def query_url @query_url end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/moesif_api/http/http_request.rb', line 5 def username @username end |