Class: Contentful::Management::Tag

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

Overview

Instance Attribute Summary

Attributes included from Resource::SystemProperties

#sys

Attributes included from Resource

#client, #properties, #raw_object, #request

Instance Method Summary collapse

Methods included from Resource::EnvironmentAware

#environment_id

Methods included from Resource::Refresher

#reload

Methods included from Resource

#array?, #default_locale, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys, #update

Instance Method Details

#destroyObject



32
33
34
35
36
37
38
39
40
# File 'lib/contentful/management/tag.rb', line 32

def destroy
  ResourceRequester.new(client, self.class).destroy(
    { space_id: space.id,
      environment_id: environment_id,
      resource_id: id },
    {},
    version: sys[:version]
  )
end