Sha256: 54da840abf0b053555a860d08d43865c6ce8b9e078e49ba34f5ce1e7f2dda344

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 Bytes

Contents

require_relative '../../dsl/intrinsic_functions'
require_relative '../mixin/conditional'

module Convection
  module Model
    class Template
      ##
      # Resource
      ##
      class Output
        extend DSL::Helpers
        include DSL::IntrinsicFunctions
        include Model::Mixin::Conditional

        attribute :value
        attribute :description

        def initialize(name, template)
          @name = name
          @template = template

          @type = ''
          @properties = {}
        end

        def render
          {
            'Value' => value,
            'Description' => description
          }.tap do |resource|
            render_condition(resource)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convection-0.0.1 lib/convection/model/template/output.rb