Class: SitePrism::AllThere::ExpectedItems Private
- Inherits:
-
Object
- Object
- SitePrism::AllThere::ExpectedItems
- Defined in:
- lib/site_prism/all_there/expected_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 to be present on a SitePrism Page or Section
Instance Method Summary collapse
-
#array ⇒ Array<Array<Symbol>>
private
All defined/expected mapped items.
-
#initialize(instance) ⇒ ExpectedItems
constructor
private
A new instance of ExpectedItems.
-
#section ⇒ Array<Symbol>
private
All defined/expected items that were mapped as
section
. -
#sections ⇒ Array<Symbol>
private
All defined/expected items that were mapped as
sections
.
Constructor Details
#initialize(instance) ⇒ ExpectedItems
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.
Returns a new instance of ExpectedItems.
14 15 16 |
# File 'lib/site_prism/all_there/expected_items.rb', line 14 def initialize(instance) @instance = instance end |
Instance Method Details
#array ⇒ 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 defined/expected mapped items
20 21 22 23 24 25 26 27 28 |
# File 'lib/site_prism/all_there/expected_items.rb', line 20 def array [ mapped_checklist_of(:element), mapped_checklist_of(:elements), section, sections, mapped_checklist_of(:iframe) ] end |
#section ⇒ 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 defined/expected items that were mapped as section
32 33 34 |
# File 'lib/site_prism/all_there/expected_items.rb', line 32 def section mapped_checklist_of(:section) end |
#sections ⇒ 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 defined/expected items that were mapped as sections
38 39 40 |
# File 'lib/site_prism/all_there/expected_items.rb', line 38 def sections mapped_checklist_of(:sections) end |