Class: ContentfulModel::Management

Inherits:
Contentful::Management::Client
  • Object
show all
Defined in:
lib/contentful_model/management.rb

Overview

Wrapper for the CMA Client

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Management

Returns a new instance of Management.



4
5
6
7
8
9
10
11
12
# File 'lib/contentful_model/management.rb', line 4

def initialize(options = {})
  # Apply management specific options (if any)
  options = ContentfulModel.configuration.to_hash.merge(options)
  if options[:management_api]
    options = options.merge(options[:management_api])
  end

  super(ContentfulModel.configuration.management_token, options)
end