Class: Gazouillis::Request
- Inherits:
-
String
- Object
- String
- Gazouillis::Request
- Defined in:
- lib/gazouillis/request.rb
Constant Summary collapse
- CRLF =
"\r\n"
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#oauth ⇒ Object
readonly
Returns the value of attribute oauth.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, options) ⇒ Request
constructor
A new instance of Request.
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, ) @host, @path, @method = [:host], path, [:method] @oauth = [:oauth] super(request) end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
4 5 6 |
# File 'lib/gazouillis/request.rb', line 4 def host @host end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/gazouillis/request.rb', line 4 def method @method end |
#oauth ⇒ Object (readonly)
Returns the value of attribute oauth.
4 5 6 |
# File 'lib/gazouillis/request.rb', line 4 def oauth @oauth end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/gazouillis/request.rb', line 4 def path @path end |