class SitePrism::AllThere::MappedItems

@api private

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

Attributes

instance[R]

Public Class Methods

new(instance) click to toggle source
# File lib/site_prism/all_there/mapped_items.rb, line 13
def initialize(instance)
  @instance = instance
end

Public Instance Methods

array() click to toggle source

@return [Array<Symbol>] All expected mapped items on the SitePrism instance as a Symbol Array

# File lib/site_prism/all_there/mapped_items.rb, line 19
def array
  hash.values.flatten.uniq
end
hash() click to toggle source

@return [Hash<Symbol>] All expected mapped items on the SitePrism instance as a Symbol Hash

# File lib/site_prism/all_there/mapped_items.rb, line 25
def hash
  instance.class.mapped_items(legacy: false)
end