Class: SitePrism::AllThere::ExpectedItems Private

Inherits:
Object
  • Object
show all
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

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

#arrayArray<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

Returns:

  • (Array<Array<Symbol>>)


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

#sectionArray<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

Returns:

  • (Array<Symbol>)


32
33
34
# File 'lib/site_prism/all_there/expected_items.rb', line 32

def section
  mapped_checklist_of(:section)
end

#sectionsArray<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

Returns:

  • (Array<Symbol>)


38
39
40
# File 'lib/site_prism/all_there/expected_items.rb', line 38

def sections
  mapped_checklist_of(:sections)
end