Sha256: ad197ae63b52bf7e5164cf5d73001379946fa8e6b259117ed65b15cdf9454d1e

Contents?: true

Size: 1023 Bytes

Versions: 8

Compression:

Stored size: 1023 Bytes

Contents

# frozen_string_literal: true

module ChartMogul
  module Metrics
    class Activity < ChartMogul::Object
      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 :subscription_external_id
      readonly_attr :plan_external_id
      readonly_attr :customer_name
      readonly_attr :customer_uuid
      readonly_attr :customer_external_id
      readonly_attr :billing_connector_uuid
      readonly_attr :uuid

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

    class Activities < APIResource
      set_resource_name 'Activities'
      set_resource_path '/v1/activities'

      include Concerns::Entries
      include Concerns::PageableWithAnchor

      set_entry_class Activity

      def self.all(options = {})
        super(options)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chartmogul-ruby-3.3.0 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-3.2.0 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-3.1.0 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-3.0.2 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-3.0.0 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-2.9.0 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-2.1.0 lib/chartmogul/metrics/activity.rb
chartmogul-ruby-2.0.0 lib/chartmogul/metrics/activity.rb