Module: Nervion::Request

Included in:
Get, Post
Defined in:
lib/nervion/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#oauth_paramsObject (readonly)

Returns the value of attribute oauth_params.



6
7
8
# File 'lib/nervion/request.rb', line 6

def oauth_params
  @oauth_params
end

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'lib/nervion/request.rb', line 6

def params
  @params
end

Instance Method Details

#hostObject



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

#pathObject



18
19
20
# File 'lib/nervion/request.rb', line 18

def path
  @uri.request_uri
end

#portObject



26
27
28
# File 'lib/nervion/request.rb', line 26

def port
  @uri.port
end

#uriObject



14
15
16
# File 'lib/nervion/request.rb', line 14

def uri
  @uri.to_s
end