Class: Contentful::Management::Snapshot
- Inherits:
-
Object
- Object
- Contentful::Management::Snapshot
- 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, #properties, #raw_object, #request
Class Method Summary collapse
-
.all(client, space_id, environment_id, resource_id, resource_type = 'entries', params = {}) ⇒ Contentful::Management::Array<Contentful::Management::Snapshot>
Gets all snapshots for a resource.
-
.create ⇒ Object
Not supported.
-
.find(client, space_id, environment_id, resource_id, snapshot_id, resource_type = 'entries') ⇒ Contentful::Management::Snapshot
Gets a snapshot by ID.
Instance Method Summary collapse
-
#destroy ⇒ Object
Not supported.
-
#update ⇒ Object
Not supported.
Methods included from Resource::EnvironmentAware
Methods included from Resource::Refresher
Methods included from Resource
#array?, #default_locale, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys
Class Method Details
.all(client, space_id, environment_id, resource_id, resource_type = 'entries', params = {}) ⇒ Contentful::Management::Array<Contentful::Management::Snapshot>
Gets all snapshots for a resource
rubocop:disable Metrics/ParameterLists
43 44 45 |
# File 'lib/contentful/management/snapshot.rb', line 43 def self.all(client, space_id, environment_id, resource_id, resource_type = 'entries', params = {}) ClientSnapshotMethodsFactory.new(client, space_id, environment_id, resource_type).all(resource_id, params) end |
.create ⇒ Object
Not supported
62 63 64 |
# File 'lib/contentful/management/snapshot.rb', line 62 def self.create(*) fail 'Not supported' end |
.find(client, space_id, environment_id, resource_id, snapshot_id, resource_type = 'entries') ⇒ Contentful::Management::Snapshot
Gets a snapshot by ID
57 58 59 |
# File 'lib/contentful/management/snapshot.rb', line 57 def self.find(client, space_id, environment_id, resource_id, snapshot_id, resource_type = 'entries') ClientSnapshotMethodsFactory.new(client, space_id, environment_id, resource_type).find(resource_id, snapshot_id) end |
Instance Method Details
#destroy ⇒ Object
Not supported
86 87 88 |
# File 'lib/contentful/management/snapshot.rb', line 86 def destroy fail 'Not supported' end |
#update ⇒ Object
Not supported
91 92 93 |
# File 'lib/contentful/management/snapshot.rb', line 91 def update(*) fail 'Not supported' end |