Class: TivoHMO::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- TivoHMO::Server
- Includes:
- GemLogger::LoggerSupport, Config::Mixin
- Defined in:
- lib/tivohmo/server.rb
Overview
The http server for serving the Application/Container/Item tree, including an endpoint for transcoding video from the Item to the tivo format
Defined Under Namespace
Modules: Helpers
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(server) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(server) ⇒ Server
Returns a new instance of Server.
54 55 56 57 |
# File 'lib/tivohmo/server.rb', line 54 def initialize(server) @server = server super end |
Class Method Details
.start(server, port, &block) ⇒ Object
50 51 52 |
# File 'lib/tivohmo/server.rb', line 50 def self.start(server, port, &block) Rack::Handler.default.run new(server), Port: port, &block end |