Sha256: e5ad64bbd80091cb33886939e765c668b9c1a360f2f031480e092f2bce268eb9

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

module Ad
  module AgentArchitecture
    module Dsl
      # This class is responsible for defining the attributes of a workflow
      class AttributeDsl
        def initialize(attributes)
          @attributes = attributes
        end

        def attribute(name, type:, is_array: false)
          @attributes[name] = { name: name, type: type, is_array: is_array }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.11 lib/ad/agent_architecture/dsl/attribute_dsl.rb
ad-agent_architecture-0.0.10 lib/ad/agent_architecture/dsl/attribute_dsl.rb