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