Method: Streamio::Model.count

Defined in:
lib/streamio/model.rb

.count(parameters = {}) ⇒ Integer

Returns a count of number of models on your account filtered on the parameters your specify.

for the count. Refer to Streamio API reference for a list of valid parameters for each of the different models availible.



55
56
57
58
59
# File 'lib/streamio/model.rb', line 55

def count(parameters = {})
  sanitize_parameters(parameters)
  response = resource.get("count", parameters)
  MultiJson.decode(response.body)["count"]
end