Module: HowAreWeDoing::ActsAsAnalytical::InstanceMethods

Defined in:
lib/how_are_we_doing/acts_as_analytical.rb

Instance Method Summary collapse

Instance Method Details

#create_totalObject



85
86
87
# File 'lib/how_are_we_doing/acts_as_analytical.rb', line 85

def create_total
  send("#{self.class.name.underscore}able").totals.create
end

#to_print_chart_label(graph_type = nil) ⇒ Object



89
90
91
92
93
94
95
# File 'lib/how_are_we_doing/acts_as_analytical.rb', line 89

def to_print_chart_label(graph_type=nil)
  if respond_to?(:print_chart_label)
    print_chart_label(graph_type)
  else
    to_s
  end
end