Class: Sabbath::Server::StatsProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/sabbath/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostObject (readonly)

Returns the value of attribute host.



81
82
83
# File 'lib/sabbath/server.rb', line 81

def host
  @host
end

#nameObject (readonly)

Returns the value of attribute name.



81
82
83
# File 'lib/sabbath/server.rb', line 81

def name
  @name
end

#portObject (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