class Intercom::Service::Counts

Public Instance Methods

collection_class() click to toggle source
# File lib/intercom/service/count.rb, line 9
def collection_class
  Intercom::Count
end
for_app() click to toggle source
# File lib/intercom/service/count.rb, line 13
def for_app
  find({})
end
for_type(type:, count: nil) click to toggle source
# File lib/intercom/service/count.rb, line 17
def for_type(type:, count: nil)
  params = {type: type}
  params[:count] = count if count
  find(params)
end