Class: Locomotive::Mounter::Reader::Api::ContentEntriesReader
- Defined in:
- lib/locomotive/mounter/reader/api/content_entries_reader.rb
Instance Attribute Summary collapse
-
#ids ⇒ Object
Returns the value of attribute ids.
-
#relationships ⇒ Object
Returns the value of attribute relationships.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(runner) ⇒ ContentEntriesReader
constructor
A new instance of ContentEntriesReader.
-
#read ⇒ Array
Build the list of content types from the folder on the file system.
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
#ids ⇒ Object
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 |
#relationships ⇒ Object
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
#read ⇒ Array
Build the list of content types from the folder on the file system.
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 |