class ArticleFixtureGen::Data::MarkerArray

Builds an array of marker-tag ID strings. FIXME: This should be `BuildMarkerArray` or similar.

Public Class Methods

call(attributes:) click to toggle source
# File lib/article_fixture_gen/data/marker_array.rb, line 10
def self.call(attributes:)
  new(attributes).call
end
new(attributes) click to toggle source
# File lib/article_fixture_gen/data/marker_array.rb, line 23
def initialize(attributes)
  @attributes = attributes
  self
end

Public Instance Methods

call() click to toggle source
# File lib/article_fixture_gen/data/marker_array.rb, line 14
def call
  @attributes.map do |attrib|
    mtp = MarkerTagPair.call id_string: attrib.id_string
    NodeFromMarkup.call mtp
  end
end