Class: Contentful::Management::Snapshot
- Inherits:
-
Object
- Object
- Contentful::Management::Snapshot
- Includes:
- Resource, Resource::Refresher, Resource::SystemProperties
- Defined in:
- lib/contentful/management/snapshot.rb
Overview
Resource class for Snapshot.
Instance Attribute Summary
Attributes included from Resource::SystemProperties
Attributes included from Resource
#client, #default_locale, #properties, #raw_object, #request
Class Method Summary collapse
-
.all(client, space_id, entry_id) ⇒ Contentful::Management::Array<Contentful::Management::Snapshot>
Gets all Snapshots for an Entry.
-
.create ⇒ Object
Creates a Snapshot.
-
.find(client, space_id, entry_id, snapshot_id) ⇒ Contentful::Management::Snapshot
Gets a Snapshot by ID.
Instance Method Summary collapse
-
#destroy ⇒ Object
Deletes a Snapshot.
-
#update ⇒ Object
Updates a Snapshot.
Methods included from Resource::Refresher
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
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 |
.create ⇒ Object
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
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
#destroy ⇒ Object
Deletes a Snapshot
Not Supported
65 66 67 |
# File 'lib/contentful/management/snapshot.rb', line 65 def destroy fail 'Not supported' end |
#update ⇒ Object
Updates a Snapshot
Not Supported
72 73 74 |
# File 'lib/contentful/management/snapshot.rb', line 72 def update(*) fail 'Not supported' end |