Class: Gazouillis::Request

Inherits:
String
  • Object
show all
Defined in:
lib/gazouillis/request.rb

Constant Summary collapse

CRLF =
"\r\n"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, options) ⇒ Request

Returns a new instance of Request.



7
8
9
10
11
# File 'lib/gazouillis/request.rb', line 7

def initialize(path, options)
  @host, @path, @method = options[:host], path, options[:method]
  @oauth = options[:oauth]
  super(request)
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



4
5
6
# File 'lib/gazouillis/request.rb', line 4

def host
  @host
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/gazouillis/request.rb', line 4

def method
  @method
end

#oauthObject (readonly)

Returns the value of attribute oauth.



4
5
6
# File 'lib/gazouillis/request.rb', line 4

def oauth
  @oauth
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/gazouillis/request.rb', line 4

def path
  @path
end