Class: HiveRuby::Server
- Inherits:
-
Object
- Object
- HiveRuby::Server
- Defined in:
- lib/hive_ruby/server.rb
Overview
WebServer
Instance Attribute Summary collapse
-
#routes ⇒ Object
readonly
Returns the value of attribute routes.
Instance Method Summary collapse
-
#initialize(device: HiveRuby::Device.new) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(device: HiveRuby::Device.new) ⇒ Server
Returns a new instance of Server.
8 9 10 11 12 13 14 15 |
# File 'lib/hive_ruby/server.rb', line 8 def initialize(device: HiveRuby::Device.new) @device = device @config = HiveRuby::ServerConfig.new setup_get device setup_post device Rack::Handler::WEBrick.run @config, Port: port end |
Instance Attribute Details
#routes ⇒ Object (readonly)
Returns the value of attribute routes.
7 8 9 |
# File 'lib/hive_ruby/server.rb', line 7 def routes @routes end |