Class: SitePrism::AllThere::MappedItems Private

Inherits:
Object
  • Object
show all
Defined in:
lib/site_prism/all_there/mapped_items.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The Expected Items on a SitePrism Page or Section structured in an enumerable way

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return a list of all mapped items on a SitePrism class instance (Page or Section)



15
16
17
# File 'lib/site_prism/all_there/mapped_items.rb', line 15

def initialize(instance)
  @hash = instance.class.mapped_items
end

Instance Attribute Details

#hashObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/site_prism/all_there/mapped_items.rb', line 11

def hash
  @hash
end

Instance Method Details

#arrayArray<Symbol>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

All expected mapped items on the SitePrism instance as a Symbol Array

Returns:

  • (Array<Symbol>)


21
22
23
# File 'lib/site_prism/all_there/mapped_items.rb', line 21

def array
  hash.values.flatten.uniq
end