Class: PreparedRequest
- Inherits:
-
Object
- Object
- PreparedRequest
- Defined in:
- lib/prepared_request.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PreparedRequest
constructor
A new instance of PreparedRequest.
Constructor Details
#initialize(options = {}) ⇒ PreparedRequest
Returns a new instance of PreparedRequest.
5 6 7 8 9 10 |
# File 'lib/prepared_request.rb', line 5 def initialize(={}) @headers = [:headers] || {} @uri = [:uri] || '' @method = [:method] || :get @data = [:data] || nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/prepared_request.rb', line 3 def data @data end |
#headers ⇒ Object
Returns the value of attribute headers.
3 4 5 |
# File 'lib/prepared_request.rb', line 3 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method.
3 4 5 |
# File 'lib/prepared_request.rb', line 3 def method @method end |
#uri ⇒ Object
Returns the value of attribute uri.
3 4 5 |
# File 'lib/prepared_request.rb', line 3 def uri @uri end |