Sha256: c957b0d1efae9437d18fbb3e5ccb0b5a60e84cb3153393adc1c3d9192b8ec04c

Contents?: true

Size: 880 Bytes

Versions: 1

Compression:

Stored size: 880 Bytes

Contents

module ChartMogul
  module Metrics
    class Subscription < ChartMogul::Object
      readonly_attr :id
      readonly_attr :plan
      readonly_attr :quantity
      readonly_attr :mrr
      readonly_attr :arr
      readonly_attr :status
      readonly_attr :billing_cycle
      readonly_attr :billing_cycle_count
      readonly_attr :start_date, type: :time
      readonly_attr :end_date, type: :time
      readonly_attr :currency
      readonly_attr :currency_sign

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

    class Subscriptions < APIResource
      set_resource_name 'Subscriptions'
      set_resource_path '/v1/customers/:customer_uuid/subscriptions'

      writeable_attr :customer_uuid

      include Concerns::Entries
      include Concerns::Pageable

      set_entry_class Subscription
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chartmogul-ruby-0.1.1 lib/chartmogul/metrics/subscription.rb