Module: PhantomGraph

Defined in:
lib/phantom_graph/base.rb,
lib/phantom_graph/error.rb,
lib/phantom_graph/convert.rb,
lib/phantom_graph/setting.rb,
lib/phantom_graph/version.rb,
lib/phantom_graph/convert/highchart.rb,
lib/phantom_graph/convert/stockchart.rb

Defined Under Namespace

Modules: Convert, Error Classes: Base, Setting

Constant Summary collapse

VERSION =
"0.0.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.settingObject

Configure Phantomjs someplace sensible, like config/initializers/phantom_graph.rb

Examples:

PhantomGraph.configure do |config|
  config.phantomjs               = "/usr/local/bin/phantomjs"
  config.logger                  = true
  config.highcharts_convert_path = "#{Rails.root}/app/assets/javascripts/highcharts-convert.js"
  config.highcharts_theme_path   = "#{Rails.root}/app/assets/javascripts/highcharts-theme.js"
  config.highcharts_path         = "#{Rails.root}/app/assets/javascripts/highcharts.js"
  config.highstock_path          = "#{Rails.root}/app/assets/javascripts/highstock.js"
  config.jquery_path             = "#{Rails.root}/app/assets/javascripts/jquery.js"
end


60
61
62
# File 'lib/phantom_graph/setting.rb', line 60

def setting
  @setting
end

Class Method Details

.configure {|setting| ... } ⇒ Object

Yields:



64
65
66
# File 'lib/phantom_graph/setting.rb', line 64

def self.configure
  yield(setting)
end