Sha256: bcb62e850471cfbf777271ece3a5b9da4771db35750367a8b6e6702920c1a95c

Contents?: true

Size: 958 Bytes

Versions: 5

Compression:

Stored size: 958 Bytes

Contents

# frozen_string_literal: true

module ChartMogul
  module Metrics
    class Activity < ChartMogul::Object
      readonly_attr :id
      readonly_attr :description
      readonly_attr :type
      readonly_attr :date, type: :time
      readonly_attr :activity_arr
      readonly_attr :activity_mrr
      readonly_attr :activity_mrr_movement
      readonly_attr :currency
      readonly_attr :currency_sign
      readonly_attr :subscription_external_id

      def self.all(customer_uuid, options = {})
        ChartMogul::Metrics::Activities.all(customer_uuid, options)
      end
    end

    class Activities < APIResource
      set_resource_name 'Activities'
      set_resource_path '/v1/customers/:customer_uuid/activities'

      include Concerns::Entries
      include Concerns::Pageable

      set_entry_class Activity

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chartmogul-ruby-1.7.3 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-1.7.2 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-1.7.1 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-1.6.9 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-1.6.8 lib/chartmogul/metrics/activity.rb