Method: Fabricio::Networking::AppRequestModelFactory#active_now_request_model

Defined in:
lib/fabricio/networking/app_request_model_factory.rb

#active_now_request_model(session, app_id) ⇒ Fabricio::Networking::RequestModel

Returns a request model for obtaining the count of active users at the current moment

Parameters:

Returns:



47
48
49
50
51
52
53
54
55
# File 'lib/fabricio/networking/app_request_model_factory.rb', line 47

def active_now_request_model(session, app_id)
  path = growth_analytics_endpoint(session, app_id, 'active_now')
  model = Fabricio::Networking::RequestModel.new do |config|
    config.type = :GET
    config.base_url = FABRIC_API_URL
    config.api_path = path
  end
  model
end