Class: Fragmentary::Request

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  @method, @path, @parameters, @options = method, path, parameters, options
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



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

def method
  @method
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#parametersObject (readonly)

Returns the value of attribute parameters.



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

def parameters
  @parameters
end

#pathObject (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 options == other.options
end