Sha256: fdcc40efc7bd9326101a815121b908a91f209a49cb204b118148cb9f9d02a80a

Contents?: true

Size: 452 Bytes

Versions: 7

Compression:

Stored size: 452 Bytes

Contents

module Appstats
  class Result < ActiveRecord::Base
    set_table_name "appstats_results"

    attr_accessible :name, :result_type, :query, :query_as_sql, :count, :action, :host, :from_date, :to_date

    def ==(o)
       o.class == self.class && o.send(:state) == state
    end
    alias_method :eql?, :==

    private

      def state
        [name, result_type, query, query_as_sql, count, action, host, from_date, to_date]
      end

    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appstats-0.9.1 lib/appstats/result.rb
appstats-0.9.0 lib/appstats/result.rb
appstats-0.8.3 lib/appstats/result.rb
appstats-0.8.2 lib/appstats/result.rb
appstats-0.8.1 lib/appstats/result.rb
appstats-0.8.0 lib/appstats/result.rb
appstats-0.7.0 lib/appstats/result.rb