Sha256: 0a3672b8d887075145e96c91b764477468b316d262b8272ad2c947998c81d152

Contents?: true

Size: 730 Bytes

Versions: 217

Compression:

Stored size: 730 Bytes

Contents

# Classes that inherit from this method should NOT define and override:
#
#   logical_id
#   type
#   properties
#   attributes
#
# These are computed methods that derive their values from the resource definition itself.
# Overriding these methods will remove the computed logical which handles things
# like camelizing and replacements.
#
# The implementation of these methods are in `Jets::Resource`.
class Jets::Resource
  class Base
    extend Memoist
    delegate :logical_id, :type, :properties, :attributes, :parameters, :outputs,
             to: :resource

    def resource
      Jets::Resource.new(definition, replacements)
    end
    memoize :resource

    def replacements
      @replacements || {}
    end
  end
end

Version data entries

217 entries across 217 versions & 4 rubygems

Version Path
jets-3.1.2 lib/jets/resource/base.rb
jets-3.1.1 lib/jets/resource/base.rb
jets-3.1.0 lib/jets/resource/base.rb
jets-3.0.23 lib/jets/resource/base.rb
jets-3.0.22 lib/jets/resource/base.rb
jets-3.0.21 lib/jets/resource/base.rb
jets-3.0.20 lib/jets/resource/base.rb
jets-3.0.19 lib/jets/resource/base.rb
jets-3.0.18 lib/jets/resource/base.rb
jets-3.0.17 lib/jets/resource/base.rb
jets-3.0.16 lib/jets/resource/base.rb
jets-3.0.15 lib/jets/resource/base.rb
jets-3.0.14 lib/jets/resource/base.rb
jets-3.0.13 lib/jets/resource/base.rb
jets-3.0.12 lib/jets/resource/base.rb
jets-3.0.11 lib/jets/resource/base.rb
jets-3.0.10 lib/jets/resource/base.rb
jets-3.0.9 lib/jets/resource/base.rb
jets-3.0.8 lib/jets/resource/base.rb
jets-3.0.7 lib/jets/resource/base.rb