Class: Idcf::Your::Request
- Inherits:
-
Object
- Object
- Idcf::Your::Request
- Defined in:
- lib/idcf/your/request.rb
Overview
Send HTTP request
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(client, method, resource, parameters, headers) ⇒ Request
constructor
A new instance of Request.
- #send ⇒ Object
Constructor Details
#initialize(client, method, resource, parameters, headers) ⇒ Request
Returns a new instance of Request.
10 11 12 13 14 15 16 |
# File 'lib/idcf/your/request.rb', line 10 def initialize(client, method, resource, parameters, headers) @client = client @method = method @resource = resource @parameters = parameters @headers = headers end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/idcf/your/request.rb', line 7 def client @client end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
7 8 9 |
# File 'lib/idcf/your/request.rb', line 7 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/idcf/your/request.rb', line 7 def method @method end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
7 8 9 |
# File 'lib/idcf/your/request.rb', line 7 def parameters @parameters end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
7 8 9 |
# File 'lib/idcf/your/request.rb', line 7 def resource @resource end |