Class: SitePrism::AllThere::MappedItems Private
- Inherits:
-
Object
- Object
- SitePrism::AllThere::MappedItems
- 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
- #hash ⇒ Object readonly private
Instance Method Summary collapse
-
#array ⇒ Array<Symbol>
private
All expected mapped items on the SitePrism instance as a Symbol Array.
-
#initialize(instance) ⇒ Hash
constructor
private
Return a list of all mapped items on a SitePrism class instance (Page or Section).
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
#hash ⇒ Object (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
#array ⇒ Array<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
21 22 23 |
# File 'lib/site_prism/all_there/mapped_items.rb', line 21 def array hash.values.flatten.uniq end |