Sha256: e310d0f0e024cc5f6ede37a3d2a017c6d20c1eb9bc36384f4a7888cd5dcff832

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class Profile
    attr_reader :builders, :data_models, :data_set

    def initialize(builders:, data_models:, data_set:)
      @builders = builders
      @data_models = data_models
      @data_set = data_set
    end

    def builder_for(key)
      builders[key]
    end

    def data_model_for(file_attribute)
      data_models[file_attribute]
    end

    def data_set_for(name)
      data_set[name]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
meibo-0.27.1 lib/meibo/profile.rb
meibo-0.27.0 lib/meibo/profile.rb
meibo-0.26.0 lib/meibo/profile.rb
meibo-0.25.3 lib/meibo/profile.rb
meibo-0.25.2 lib/meibo/profile.rb
meibo-0.25.1 lib/meibo/profile.rb
meibo-0.25.0 lib/meibo/profile.rb
meibo-0.24.0 lib/meibo/profile.rb
meibo-0.23.0 lib/meibo/profile.rb
meibo-0.22.0 lib/meibo/profile.rb