Class: Contentful::Management::UsagePeriod

Inherits:
Object
  • Object
show all
Includes:
Resource, Resource::Refresher, Resource::SystemProperties
Defined in:
lib/contentful/management/usage_period.rb

Overview

Resource class for UsagePeriod.

See Also:

  • https://www.contentful.com/developers/docs/references/content-management-api/#/reference/api-usages

Instance Attribute Summary

Attributes included from Resource::SystemProperties

#sys

Attributes included from Resource

#client, #properties, #raw_object, #request

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Resource::Refresher

#reload

Methods included from Resource

#array?, #default_locale, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys

Class Method Details

.all(client, organization_id, params = {}) ⇒ Contentful::Management::Array<Contentful::Management::UsagePeriod>

Gets all usage periods for a given organization.

Parameters:

Returns:



29
30
31
# File 'lib/contentful/management/usage_period.rb', line 29

def self.all(client, organization_id, params = {})
  ClientUsagePeriodMethodsFactory.new(client, organization_id).all(params)
end

.createObject

Not supported



44
45
46
# File 'lib/contentful/management/usage_period.rb', line 44

def self.create(*)
  fail 'Not supported'
end

.findObject

Not supported



34
35
36
# File 'lib/contentful/management/usage_period.rb', line 34

def self.find(*)
  fail 'Not supported'
end

Instance Method Details

#destroyObject

Not supported



49
50
51
# File 'lib/contentful/management/usage_period.rb', line 49

def destroy
  fail 'Not supported'
end

#updateObject

Not supported



54
55
56
# File 'lib/contentful/management/usage_period.rb', line 54

def update(*)
  fail 'Not supported'
end