Class: MachineGun::Request
- Inherits:
-
Object
- Object
- MachineGun::Request
- Defined in:
- lib/machine-gun/request.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#id ⇒ Object
Returns the value of attribute id.
-
#method ⇒ Object
Returns the value of attribute method.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(method, url, headers, payload = nil) ⇒ Request
constructor
A new instance of Request.
- #response ⇒ Object
Constructor Details
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
6 7 8 |
# File 'lib/machine-gun/request.rb', line 6 def headers @headers end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/machine-gun/request.rb', line 3 def id @id end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/machine-gun/request.rb', line 4 def method @method end |
#payload ⇒ Object
Returns the value of attribute payload.
7 8 9 |
# File 'lib/machine-gun/request.rb', line 7 def payload @payload end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/machine-gun/request.rb', line 5 def url @url end |