Class: Home

Inherits:
Object
  • Object
show all
Includes:
Renderer
Defined in:
lib/city_watch/commander/home.rb

Instance Method Summary collapse

Methods included from Renderer

#render, #render_bare

Instance Method Details

#call(env) ⇒ Object



5
6
7
# File 'lib/city_watch/commander/home.rb', line 5

def call(env)
	[200,{"Content-Type" => "text/html"},[render("home")]]
end

#serversObject



9
10
11
# File 'lib/city_watch/commander/home.rb', line 9

def servers
	Reader.servers
end