Sha256: 78548dd6c0f8a5d88cbb674f1df4c67677624e4c993323ca5a6400a654245507
Contents?: true
Size: 670 Bytes
Versions: 5
Compression:
Stored size: 670 Bytes
Contents
class ImpressionCount < MLS::Model belongs_to :subject, polymorphic: true def self.by_day(**body) req = Net::HTTP::Get.new("/impression_counts/by_day") req.body = body.to_json connection.instance_variable_get(:@connection).send_request(req).body end def self.by_week(**body) req = Net::HTTP::Get.new("/impression_counts/by_week") req.body = body.to_json connection.instance_variable_get(:@connection).send_request(req).body end def self.by_month(**body) req = Net::HTTP::Get.new("/impression_counts/by_month") req.body = body.to_json connection.instance_variable_get(:@connection).send_request(req).body end end
Version data entries
5 entries across 5 versions & 1 rubygems