Sha256: 5a9aaec784e751f2a80c4fc931dc5be4c726371ab242d4d5b85a3b1b9ea51cdf
Contents?: true
Size: 814 Bytes
Versions: 19
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true module ChartMogul class PlanGroup < APIResource set_resource_name 'PlanGroup' set_resource_path '/v1/plan_groups' readonly_attr :uuid readonly_attr :plans_count writeable_attr :name writeable_attr :plans, default: [] include API::Actions::Create include API::Actions::Destroy include API::Actions::Retrieve include API::Actions::Update def self.all(options = {}) PlanGroups.all(options) end def serialize_plans plans.map(&:uuid) end class PlanGroups < APIResource set_resource_name 'PlanGroups' set_resource_path '/v1/plan_groups' set_resource_root_key :plan_groups include Concerns::Entries include Concerns::Pageable2 set_entry_class PlanGroup end end end
Version data entries
19 entries across 19 versions & 1 rubygems