class Contentful::Management::ContentTypeSnapshotMethodsFactory
Wrapper for Entry
manipulation for a specific Content Type @private
Attributes
content_type[R]
Public Class Methods
new(content_type)
click to toggle source
@private
# File lib/contentful/management/content_type_snapshot_methods_factory.rb, line 11 def initialize(content_type) @content_type = content_type end
Public Instance Methods
all(params = {})
click to toggle source
Gets all snapshot for a specific content type.
@see _ For complete option list: www.contentful.com/developers/docs/references/content-management-api/#/reference/snapshots/content-type-snapshots-collection
@return [Contentful::Management::Array<Contentful::Management::Snapshot>]
# File lib/contentful/management/content_type_snapshot_methods_factory.rb, line 20 def all(params = {}) Snapshot.all( content_type.client, content_type.space.id, content_type.environment_id, content_type.id, 'content_types', params ) end
find(snapshot_id)
click to toggle source
Gets a snapshot by ID for a specific content type.
@param [String] snapshot_id @see _ For complete option list: www.contentful.com/developers/docs/references/content-management-api/#/reference/snapshots/content-type-snapshots-collection
@return [Contentful::Management::Array<Contentful::Management::Snapshot>]
# File lib/contentful/management/content_type_snapshot_methods_factory.rb, line 37 def find(snapshot_id) Snapshot.find( content_type.client, content_type.space.id, content_type.environment_id, content_type.id, snapshot_id, 'content_types' ) end