Class: Bitcharts::ScopedChart

Inherits:
BaseChart show all
Defined in:
app/models/bitcharts/scoped_chart.rb

Instance Method Summary collapse

Methods inherited from BaseChart

chart_types, for_key, has_key, has_scope, #label, #scoped_label, #value, #value_for_date_range

Instance Method Details

#scoped_value(date_range, scope) ⇒ Object



7
8
9
# File 'app/models/bitcharts/scoped_chart.rb', line 7

def scoped_value(date_range, scope)
  raise 'Chart must implement #scoped_value(date_range, scope)'
end

#scoped_value_for_date_range(date_range, scope) ⇒ Object



3
4
5
# File 'app/models/bitcharts/scoped_chart.rb', line 3

def scoped_value_for_date_range(date_range, scope)
  scoped_value(date_range, scope)
end