Class: Appstats::SubResult

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/appstats/sub_result.rb

Instance Method Summary collapse

Instance Method Details

#==(o) ⇒ Object Also known as: eql?



13
14
15
# File 'lib/appstats/sub_result.rb', line 13

def ==(o)
   o.class == self.class && o.send(:state) == state
end

#total_countObject



8
9
10
11
# File 'lib/appstats/sub_result.rb', line 8

def total_count
  return 0 if result.nil?
  result.count
end