Class: ImpressionCount
- Inherits:
-
MLS::Model
- Object
- ActiveRecord::Base
- MLS::Model
- ImpressionCount
- Defined in:
- lib/mls/models/impression_count.rb
Class Method Summary collapse
Class Method Details
.by_day(**body) ⇒ Object
4 5 6 7 8 |
# File 'lib/mls/models/impression_count.rb', line 4 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 |
.by_month(**body) ⇒ Object
16 17 18 19 20 |
# File 'lib/mls/models/impression_count.rb', line 16 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 |
.by_week(**body) ⇒ Object
10 11 12 13 14 |
# File 'lib/mls/models/impression_count.rb', line 10 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 |