Class: ChartMogul::Metrics::Customers::Activities

Inherits:
APIResource show all
Includes:
Concerns::Entries, Concerns::Pageable, Concerns::PageableWithCursor
Defined in:
lib/chartmogul/metrics/customers/activity.rb

Constant Summary

Constants inherited from APIResource

APIResource::BACKOFF_FACTOR, APIResource::INTERVAL, APIResource::INTERVAL_RANDOMNESS, APIResource::MAX_INTERVAL, APIResource::RETRY_EXCEPTIONS, APIResource::RETRY_STATUSES, APIResource::THREAD_CONNECTION_KEY

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Concerns::PageableWithCursor

included

Methods included from Concerns::Pageable

included

Methods included from Concerns::Entries

included

Methods inherited from APIResource

connection, handle_other_error, handle_request_error, handling_errors, immutable_keys, set_immutable_keys, set_resource_name, set_resource_path, set_resource_root_key

Methods inherited from Object

#allowed_for_write?, #assign_all_attributes, #assign_writeable_attributes, attributes, define_private_writer, define_reader, define_writer, #initialize, #instance_attributes, new_from_json, readonly_attr, #serialize_for_write, #serialized_value_for_attr, writeable_attr, writeable_attributes

Constructor Details

This class inherits a constructor from ChartMogul::Object

Class Method Details

.all(customer_uuid, options = {}) ⇒ Object



33
34
35
# File 'lib/chartmogul/metrics/customers/activity.rb', line 33

def self.all(customer_uuid, options = {})
  super(options.merge(customer_uuid: customer_uuid))
end

Instance Method Details

#next(customer_uuid, options = {}) ⇒ Object



37
38
39
# File 'lib/chartmogul/metrics/customers/activity.rb', line 37

def next(customer_uuid, options = {})
  Activities.all(customer_uuid, options.merge(cursor: cursor))
end