Class: Locomotive::Mounter::Reader::Api::ContentTypesReader

Inherits:
Base
  • Object
show all
Defined in:
lib/locomotive/mounter/reader/api/content_types_reader.rb

Instance Attribute Summary

Attributes inherited from Base

#items, #runner

Instance Method Summary collapse

Methods inherited from Base

#add_content_asset, #get, #initialize, #mounting_point

Constructor Details

This class inherits a constructor from Locomotive::Mounter::Reader::Api::Base

Instance Method Details

#readArray

Build the list of content types from the folder in the file system.

Returns:

  • (Array)

    The un-ordered list of content types



12
13
14
15
16
17
18
19
20
# File 'lib/locomotive/mounter/reader/api/content_types_reader.rb', line 12

def read
  super

  self.fetch

  self.enable_relationships

  self.items
end