Class: BBK::HTTP::RouteInfo

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

Constant Summary collapse

DEFAULT_METHOD =
:post

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RouteInfo.



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

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

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



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

def headers
  @headers
end

#methodObject (readonly)

Returns the value of attribute method.



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

def method
  @method
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end