Sha256: 34ce29771e51c427efc0d3146f58782395e353ad47a206e73f75999d3cb20029
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal :true module ActionTracker module Models class StatisticRecord < ActionTracker::Models::ApplicationRecord include ActionTracker::HttpGateway attribute :user_id, String attribute :report_date, String attribute :total_count, Integer attribute :targets, Hash def count(params = {}) request processed_path(collection_path, params) end def daily(params = {}) path = processed_path("#{collection_path}/daily", params) parse_response request(path) end def collection_path 'statistics' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
action_tracker_client-0.1.8 | lib/action_tracker/models/statistic_record.rb |
action_tracker_client-0.1.7 | lib/action_tracker/models/statistic_record.rb |