Class: Safettp::Request
- Inherits:
-
Object
- Object
- Safettp::Request
- Defined in:
- lib/safettp/request.rb
Defined Under Namespace
Classes: Net
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, options = {}) ⇒ Request
constructor
A new instance of Request.
- #perform(method) ⇒ Object
Constructor Details
#initialize(uri, options = {}) ⇒ Request
Returns a new instance of Request.
4 5 6 7 8 |
# File 'lib/safettp/request.rb', line 4 def initialize(uri, = {}) @uri = URI(uri) @options = Safettp::HTTPOptions.new() @uri.query = @options.query end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/safettp/request.rb', line 2 def @options end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
2 3 4 |
# File 'lib/safettp/request.rb', line 2 def uri @uri end |