Class: Fragmentary::Request
- Inherits:
-
Object
- Object
- Fragmentary::Request
- Defined in:
- lib/fragmentary/request.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(method, path, parameters = nil, options = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(method, path, parameters = nil, options = {}) ⇒ Request
Returns a new instance of Request.
6 7 8 |
# File 'lib/fragmentary/request.rb', line 6 def initialize(method, path, parameters=nil, ={}) @method, @path, @parameters, @options = method, path, parameters, end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/fragmentary/request.rb', line 4 def method @method end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/fragmentary/request.rb', line 4 def @options end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/fragmentary/request.rb', line 4 def parameters @parameters end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/fragmentary/request.rb', line 4 def path @path end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/fragmentary/request.rb', line 10 def ==(other) method == other.method and path == other.path and parameters == other.parameters and == other. end |