Class: Jetski::Server
- Inherits:
-
Object
- Object
- Jetski::Server
- Defined in:
- lib/jetski/server.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**args) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(**args) ⇒ Server
5 6 7 |
# File 'lib/jetski/server.rb', line 5 def initialize(**args) @port = args[:port] || 8000 end |
Instance Attribute Details
#port ⇒ Object (readonly)
Returns the value of attribute port.
3 4 5 |
# File 'lib/jetski/server.rb', line 3 def port @port end |