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, #default_locale, #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?, #environment_id, #fields, #nested_locale_fields?, #resource?, #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
41 42 43 |
# File 'lib/contentful/management/snapshot.rb', line 41 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
60 61 62 |
# File 'lib/contentful/management/snapshot.rb', line 60 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
55 56 57 |
# File 'lib/contentful/management/snapshot.rb', line 55 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
84 85 86 |
# File 'lib/contentful/management/snapshot.rb', line 84 def destroy fail 'Not supported' end |
#update ⇒ Object
Not supported
89 90 91 |
# File 'lib/contentful/management/snapshot.rb', line 89 def update(*) fail 'Not supported' end |