Class: ArticleFixtureGen::Data::PmtpAttributes

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/article_fixture_gen/data/pmtp_attributes.rb

Overview

Wraps attributes for a single marker-tag pair instance. Initially, the only attribute supported is ‘:id_string`.

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ PmtpAttributes

Returns a new instance of PmtpAttributes.



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

def initialize(config:)
  @items = build_all_items(config.pmtp_count, config.pmtp_text)
  self
end

Instance Method Details

#each(&_block) ⇒ Object



15
16
17
# File 'lib/article_fixture_gen/data/pmtp_attributes.rb', line 15

def each(&_block)
  @items.each { |item| yield item }
end