Class: Sabbath::Server::StatsProvider
- Inherits:
-
Object
- Object
- Sabbath::Server::StatsProvider
- Defined in:
- lib/sabbath/server.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, name, host, port) ⇒ StatsProvider
constructor
A new instance of StatsProvider.
Constructor Details
#initialize(app, name, host, port) ⇒ StatsProvider
Returns a new instance of StatsProvider.
82 83 84 |
# File 'lib/sabbath/server.rb', line 82 def initialize(app, name, host, port) @app, @name, @host, @port = app, name, host, port end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
81 82 83 |
# File 'lib/sabbath/server.rb', line 81 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
81 82 83 |
# File 'lib/sabbath/server.rb', line 81 def name @name end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
81 82 83 |
# File 'lib/sabbath/server.rb', line 81 def port @port end |
Instance Method Details
#call(env) ⇒ Object
85 |
# File 'lib/sabbath/server.rb', line 85 def call(env); @app.call(env); end |