Sha256: 6138f15e0695dbac9655f3b9fad77be427c491bd58eb4c33d8d9b17e5866ed69

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

module Dox
  module DSL
    class ResourceGroup
      include AttrProxy

      attr_writer :name
      attr_writer :desc

      def initialize(opts = {})
        self.name = opts.fetch(:name, nil)
        self.desc = opts.fetch(:desc, nil)
      end

      def config
        {}.tap do |config|
          config[:resource_group_name] = @name if @name
          config[:resource_group_desc] = @desc if @desc
          config[:apidoc] = true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dox-0.0.3 lib/dox/dsl/resource_group.rb
dox-0.0.2 lib/dox/dsl/resource_group.rb