Class: BBK::HTTP::RouteInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/bbk/http/route_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, method:, headers: {}, options: {}) ⇒ RouteInfo



8
9
10
11
12
13
# File 'lib/bbk/http/route_info.rb', line 8

def initialize(uri, method:, headers: {}, options: {})
  @uri = uri
  @method = method
  @headers = headers
  @options = options
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



6
7
8
# File 'lib/bbk/http/route_info.rb', line 6

def headers
  @headers
end

#methodObject (readonly)

Returns the value of attribute method.



6
7
8
# File 'lib/bbk/http/route_info.rb', line 6

def method
  @method
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/bbk/http/route_info.rb', line 6

def options
  @options
end

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/bbk/http/route_info.rb', line 6

def uri
  @uri
end