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.
13 14 15 |
# File 'lib/nervion/request.rb', line 13 def oauth_params @oauth_params end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
13 14 15 |
# File 'lib/nervion/request.rb', line 13 def params @params end |
Instance Method Details
#host ⇒ Object
29 30 31 |
# File 'lib/nervion/request.rb', line 29 def host @uri.host end |
#initialize(uri, params, oauth_params) ⇒ Object
15 16 17 18 19 |
# File 'lib/nervion/request.rb', line 15 def initialize(uri, params, oauth_params) @uri = URI.parse(uri) @params = params @oauth_params = oauth_params end |
#path ⇒ Object
25 26 27 |
# File 'lib/nervion/request.rb', line 25 def path @uri.request_uri end |
#port ⇒ Object
33 34 35 |
# File 'lib/nervion/request.rb', line 33 def port @uri.port end |
#uri ⇒ Object
21 22 23 |
# File 'lib/nervion/request.rb', line 21 def uri @uri.to_s end |