Class: Request::Protocol
- Inherits:
-
Object
- Object
- Request::Protocol
- Includes:
- Adamantium
- Defined in:
- lib/request/protocol.rb
Constant Summary collapse
- ALL =
[]
- INDEX =
ALL.each_with_object({}) do |protocol, index| index[protocol.name] = protocol end.freeze
Instance Attribute Summary collapse
-
#default_port ⇒ Fixnum
readonly
private
Return default port.
-
#name ⇒ String
readonly
private
Return name.
Class Method Summary collapse
-
.get(name) ⇒ Protocol
private
Return protocol for name.
Instance Attribute Details
#default_port ⇒ Fixnum (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return default port
26 27 28 |
# File 'lib/request/protocol.rb', line 26 def default_port @default_port end |
#name ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return name
18 19 20 |
# File 'lib/request/protocol.rb', line 18 def name @name end |