Class: ChartMogul::PlanGroups::Plans
- Inherits:
-
APIResource
- Object
- Object
- APIResource
- ChartMogul::PlanGroups::Plans
- Includes:
- API::Actions::Custom, Concerns::Entries, Concerns::Pageable2, Concerns::PageableWithCursor
- Defined in:
- lib/chartmogul/plan_groups/plans.rb
Constant Summary
Constants inherited from APIResource
APIResource::BACKOFF_FACTOR, APIResource::INTERVAL, APIResource::INTERVAL_RANDOMNESS, APIResource::MAX_INTERVAL, APIResource::RETRY_EXCEPTIONS, APIResource::RETRY_STATUSES, APIResource::THREAD_CONNECTION_KEY
Class Method Summary collapse
Instance Method Summary collapse
Methods included from API::Actions::Custom
#custom!, #custom_without_assign!, included
Methods included from Concerns::PageableWithCursor
Methods included from Concerns::Pageable2
Methods included from Concerns::Entries
Methods inherited from APIResource
connection, handle_other_error, handle_request_error, handling_errors, immutable_keys, set_immutable_keys, set_resource_name, set_resource_path, set_resource_root_key
Methods inherited from Object
#allowed_for_write?, #assign_all_attributes, #assign_writeable_attributes, attributes, define_private_writer, define_reader, define_writer, #initialize, #instance_attributes, new_from_json, readonly_attr, #serialize_for_write, #serialized_value_for_attr, writeable_attr, writeable_attributes
Constructor Details
This class inherits a constructor from ChartMogul::Object
Class Method Details
.all(plan_group_uuid, options = {}) ⇒ Object
18 19 20 |
# File 'lib/chartmogul/plan_groups/plans.rb', line 18 def self.all(plan_group_uuid, = {}) super(.merge(plan_group_uuid: plan_group_uuid)) end |
Instance Method Details
#next(plan_group_uuid, options = {}) ⇒ Object
22 23 24 25 |
# File 'lib/chartmogul/plan_groups/plans.rb', line 22 def next(plan_group_uuid, = {}) path = ChartMogul::ResourcePath.new("/v1/plan_groups/#{plan_group_uuid}/plans") custom!(:get, path.apply_with_get_params(.merge(cursor: cursor))) end |