Class: Locomotive::Mounter::Reader::Api::ContentEntriesReader

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

Instance Attribute Summary collapse

Attributes inherited from Base

#items, #runner

Instance Method Summary collapse

Methods inherited from Base

#add_content_asset, #get, #mounting_point

Constructor Details

#initialize(runner) ⇒ ContentEntriesReader

Returns a new instance of ContentEntriesReader.



10
11
12
13
# File 'lib/locomotive/mounter/reader/api/content_entries_reader.rb', line 10

def initialize(runner)
  self.ids, self.relationships = {}, []
  super
end

Instance Attribute Details

#idsObject

Returns the value of attribute ids.



8
9
10
# File 'lib/locomotive/mounter/reader/api/content_entries_reader.rb', line 8

def ids
  @ids
end

#relationshipsObject

Returns the value of attribute relationships.



8
9
10
# File 'lib/locomotive/mounter/reader/api/content_entries_reader.rb', line 8

def relationships
  @relationships
end

Instance Method Details

#readArray

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

Returns:

  • (Array)

    The un-ordered list of content types



19
20
21
22
23
24
25
# File 'lib/locomotive/mounter/reader/api/content_entries_reader.rb', line 19

def read
  super

  self.fetch

  self.items
end