Module: Nervion::Request
Instance Attribute Summary collapse
-
#oauth_params ⇒ Object
readonly
Returns the value of attribute oauth_params.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #host ⇒ Object
- #initialize(uri, params, oauth_params) ⇒ Object
- #path ⇒ Object
- #port ⇒ Object
- #uri ⇒ Object
Instance Attribute Details
#oauth_params ⇒ Object (readonly)
Returns the value of attribute oauth_params.
6 7 8 |
# File 'lib/nervion/request.rb', line 6 def oauth_params @oauth_params end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/nervion/request.rb', line 6 def params @params end |
Instance Method Details
#host ⇒ Object
22 23 24 |
# File 'lib/nervion/request.rb', line 22 def host @uri.host end |
#initialize(uri, params, oauth_params) ⇒ Object
8 9 10 11 12 |
# File 'lib/nervion/request.rb', line 8 def initialize(uri, params, oauth_params) @uri = URI.parse(uri) @params = params @oauth_params = oauth_params end |
#path ⇒ Object
18 19 20 |
# File 'lib/nervion/request.rb', line 18 def path @uri.request_uri end |
#port ⇒ Object
26 27 28 |
# File 'lib/nervion/request.rb', line 26 def port @uri.port end |
#uri ⇒ Object
14 15 16 |
# File 'lib/nervion/request.rb', line 14 def uri @uri.to_s end |