Class: Contentful::Management::EditorInterface
- Inherits:
 - 
      Object
      
        
- Object
 - Contentful::Management::EditorInterface
 
 
- Includes:
 - Resource, Resource::Refresher, Resource::SystemProperties
 
- Defined in:
 - lib/contentful/management/editor_interface.rb
 
Overview
Resource class for Editor Interface.
Instance Attribute Summary
Attributes included from Resource::SystemProperties
Attributes included from Resource
#client, #default_locale, #properties, #raw_object, #request
Class Method Summary collapse
- 
  
    
      .create  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Creates an EditorInterface.
 - 
  
    
      .default(client, space_id, content_type_id)  ⇒ Contentful::Management::EditorInterface 
    
    
  
  
  
  
  
  
  
  
  
    
Gets the Default Editor Interface.
 - 
  
    
      .find  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Finds an EditorInterface.
 
Instance Method Summary collapse
- 
  
    
      #destroy  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Destroys an EditorInterface.
 - 
  
    
      #update(attributes)  ⇒ Contentful::Management::EditorInterface 
    
    
  
  
  
  
  
  
  
  
  
    
Updates an Editor Interface.
 
Methods included from Resource::Refresher
Methods included from Resource
#array?, #fields, #nested_locale_fields?, #resource?, #sys
Class Method Details
.create ⇒ Object
Creates an EditorInterface.
Not Supported
      34 35 36  | 
    
      # File 'lib/contentful/management/editor_interface.rb', line 34 def self.create(*) fail 'Not supported' end  | 
  
.default(client, space_id, content_type_id) ⇒ Contentful::Management::EditorInterface
Gets the Default Editor Interface
      20 21 22  | 
    
      # File 'lib/contentful/management/editor_interface.rb', line 20 def self.default(client, space_id, content_type_id) ClientEditorInterfaceMethodsFactory.new(client).default(space_id, content_type_id) end  | 
  
.find ⇒ Object
Finds an EditorInterface.
Not Supported
      27 28 29  | 
    
      # File 'lib/contentful/management/editor_interface.rb', line 27 def self.find(*) fail 'Not supported' end  | 
  
Instance Method Details
#destroy ⇒ Object
Destroys an EditorInterface.
Not Supported
      69 70 71  | 
    
      # File 'lib/contentful/management/editor_interface.rb', line 69 def destroy fail 'Not supported' end  | 
  
#update(attributes) ⇒ Contentful::Management::EditorInterface
Updates an Editor Interface
      57 58 59 60 61 62 63 64  | 
    
      # File 'lib/contentful/management/editor_interface.rb', line 57 def update(attributes) ResourceRequester.new(client, self.class).update( self, { space_id: space.id, content_type_id: content_type.id, editor_id: id }, { 'controls' => attributes.fetch(:controls) }, version: sys[:version] ) end  |