class PhantomProxy::StatusApi
Private Instance Methods
format()
click to toggle source
# File lib/phantom_proxy/status/status_api.rb, line 35 def format if env[nil] && env[nil][:format] env[nil][:format].to_sym else :html end end
name()
click to toggle source
# File lib/phantom_proxy/status/status_api.rb, line 25 def name "Data" end
status_page()
click to toggle source
# File lib/phantom_proxy/status/status_api.rb, line 14 def status_page case format when :json render_json when :xml render_xml else render "status_page" end end
uptime()
click to toggle source
# File lib/phantom_proxy/status/status_api.rb, line 31 def uptime logger.info "Call Uptime" @uptime||=StatusInfo.uptime end
value()
click to toggle source
# File lib/phantom_proxy/status/status_api.rb, line 28 def value @value||="none" end