Method: Contentful::Management::EditorInterface#update

Defined in:
lib/contentful/management/editor_interface.rb

#update(attributes) ⇒ Contentful::Management::EditorInterface

Updates an Editor Interface

Parameters:

  • attributes (Hash)

Options Hash (attributes):

  • :controls (Array<Hash>)

Returns:



60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/contentful/management/editor_interface.rb', line 60

def update(attributes)
  ResourceRequester.new(client, self.class).update(
    self,
    {
      space_id: space.id,
      environment_id: environment_id,
      content_type_id: content_type.id,
      editor_id: id
    },
    { 'controls' => attributes[:controls] || controls },
    version: sys[:version]
  )
end