Class: BBK::HTTP::RouteInfo
- Inherits:
-
Object
- Object
- BBK::HTTP::RouteInfo
- Defined in:
- lib/bbk/http/route_info.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, method:, headers: {}, options: {}) ⇒ RouteInfo
constructor
A new instance of RouteInfo.
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 = end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
6 7 8 |
# File 'lib/bbk/http/route_info.rb', line 6 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/bbk/http/route_info.rb', line 6 def method @method end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/bbk/http/route_info.rb', line 6 def end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/bbk/http/route_info.rb', line 6 def uri @uri end |