Sha256: 9b6120a9dabab12c8a9f4d0947cd06b08c68a94cb53a8f0974cdea0a1b67066c

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

require 'prolog/dry_types'

# Generate blog post/article fixture data, with embedded marker tag pairs.
module ArticleFixtureGen
  # Maintain configuration information for app.
  class Config
    # Immutable value object containing config settings.
    class Data < Dry::Struct::Value
      attribute :article_count, Types::Strict::Int
      attribute :config, Types::Strict::String.default('')
      attribute :config_given, Types::Strict::Bool
      attribute :generate_config, Types::String.default('')
      attribute :generate_config_given, Types::Strict::Bool
      attribute :para_count_max, Types::Strict::Int
      attribute :para_count_min, Types::Strict::Int
      attribute :pmtp_count, Types::Strict::Int
      attribute :pmtp_text, Types::Strict::String
      attribute :sent_count_max, Types::Strict::Int
      attribute :sent_count_min, Types::Strict::Int
      attribute :smtp_count, Types::Strict::Int
      attribute :smtp_text, Types::Strict::String
    end # class ArticleFixtureGen::Config::data
  end # class ArticleFixtureGen::Config
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
article_fixture_gen-0.1.2 lib/article_fixture_gen/config/data.rb
article_fixture_gen-0.1.1 lib/article_fixture_gen/config/data.rb