Sha256: dc6518f358a014d7127648859e5fa4a4f157fb32141e121cbdaf057eff24159d

Contents?: true

Size: 795 Bytes

Versions: 19

Compression:

Stored size: 795 Bytes

Contents

# frozen_string_literal: true

module ChartMogul
  class Plan < APIResource
    set_resource_name 'Plan'
    set_resource_path '/v1/plans'

    readonly_attr :uuid

    writeable_attr :name
    writeable_attr :interval_count
    writeable_attr :interval_unit
    writeable_attr :external_id

    writeable_attr :data_source_uuid

    include API::Actions::Create
    include API::Actions::Custom
    include API::Actions::Destroy
    include API::Actions::Retrieve
    include API::Actions::Update

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

  class Plans < APIResource
    set_resource_name 'Plans'
    set_resource_path '/v1/plans'

    set_resource_root_key :plans

    include Concerns::Entries
    include Concerns::Pageable2

    set_entry_class Plan
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
chartmogul-ruby-3.3.0 lib/chartmogul/plan.rb
chartmogul-ruby-3.2.0 lib/chartmogul/plan.rb
chartmogul-ruby-3.1.0 lib/chartmogul/plan.rb
chartmogul-ruby-3.0.2 lib/chartmogul/plan.rb
chartmogul-ruby-3.0.0 lib/chartmogul/plan.rb
chartmogul-ruby-2.9.0 lib/chartmogul/plan.rb
chartmogul-ruby-2.1.0 lib/chartmogul/plan.rb
chartmogul-ruby-2.0.0 lib/chartmogul/plan.rb
chartmogul-ruby-1.7.3 lib/chartmogul/plan.rb
chartmogul-ruby-1.7.2 lib/chartmogul/plan.rb
chartmogul-ruby-1.7.1 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.9 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.8 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.7 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.6 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.4 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.3 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.2 lib/chartmogul/plan.rb
chartmogul-ruby-1.6.1 lib/chartmogul/plan.rb