Class: ChartApp

Inherits:
Sinatra::Application
  • Object
show all
Includes:
Profit
Defined in:
lib/profit/app/chart_app.rb

Constant Summary

Constants included from Profit

Profit::VERSION

Class Method Summary collapse

Methods included from Profit

client, redis

Class Method Details

.options=(options) ⇒ Object



10
11
12
13
14
15
# File 'lib/profit/app/chart_app.rb', line 10

def self.options=(options)
  settings.port       = options[:sinatra_port] || 4567
  Profit.redis_host   = options[:redis_host]   || "127.0.0.1"
  Profit.redis_port   = options[:redis_port]   || 6379
  puts "Connecting to Redis: #{Profit.redis_host}:#{Profit.redis_port}"
end