Class: Contentful::Management::Snapshot

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

Overview

Resource class for Snapshot.

See Also:

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

Instance Attribute Summary

Attributes included from Resource::SystemProperties

#sys

Attributes included from Resource

#client, #default_locale, #properties, #raw_object, #request

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Resource::Refresher

#reload

Methods included from Resource

#array?, #fields, #nested_locale_fields?, #resource?, #sys

Class Method Details

.all(client, space_id, entry_id) ⇒ Contentful::Management::Array<Contentful::Management::Snapshot>

Gets all Snapshots for an Entry

Parameters:

Returns:



22
23
24
# File 'lib/contentful/management/snapshot.rb', line 22

def self.all(client, space_id, entry_id)
  ClientSnapshotMethodsFactory.new(client).all(space_id, entry_id)
end

.createObject

Creates a Snapshot

Not Supported



41
42
43
# File 'lib/contentful/management/snapshot.rb', line 41

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

.find(client, space_id, entry_id, snapshot_id) ⇒ Contentful::Management::Snapshot

Gets a Snapshot by ID

Parameters:

Returns:



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

def self.find(client, space_id, entry_id, snapshot_id)
  ClientSnapshotMethodsFactory.new(client).find(space_id, entry_id, snapshot_id)
end

Instance Method Details

#destroyObject

Deletes a Snapshot

Not Supported



65
66
67
# File 'lib/contentful/management/snapshot.rb', line 65

def destroy
  fail 'Not supported'
end

#updateObject

Updates a Snapshot

Not Supported



72
73
74
# File 'lib/contentful/management/snapshot.rb', line 72

def update(*)
  fail 'Not supported'
end