Class: ArticleFixtureGen::Data::PmtpDecoratorParams

Inherits:
Object
  • Object
show all
Defined in:
lib/article_fixture_gen/data/pmtp_decorator_params.rb

Overview

Builds a parameter hash for calling ‘MtpDecoratedMarkup` to decorate markup with paired MTPs (as opposed to single MTPs).

Class Method Summary collapse

Class Method Details

.call(base_markup:, config:) ⇒ Object



10
11
12
13
# File 'lib/article_fixture_gen/data/pmtp_decorator_params.rb', line 10

def self.call(base_markup:, config:)
  attributes = PmtpAttributes.new config: config
  { attributes: attributes, base_markup: base_markup }
end