Module: DuckMap::Model

Extended by:
ActiveSupport::Concern
Included in:
ActionViewTestObject
Defined in:
lib/duck_map/model.rb

Overview

Model has a very specific purpose. To hold the Array of Hash objects that represent the contents of a single sitemap.

Defined Under Namespace

Classes: Supported

Instance Method Summary collapse

Instance Method Details

#sitemap_modelArray

Array containing all of the Hash objects that represent the contents of a single sitemap. Originally, this method was part of ControllerHelpers, however, it was separated and moved here to minimize the number of methods being added to controllers.

Returns:

  • (Array)


18
19
20
# File 'lib/duck_map/model.rb', line 18

def sitemap_model
  @sitemap_model ||= []
end

#sitemap_model=(value) ⇒ Object



22
23
24
# File 'lib/duck_map/model.rb', line 22

def sitemap_model=(value)
  @sitemap_model = value
end