Sha256: 54103763a6bf2d8e17a0bf77edb8c5a4bd525b462c0a5da04442e4b4b9556b92

Contents?: true

Size: 589 Bytes

Versions: 78

Compression:

Stored size: 589 Bytes

Contents

# Does not do full expansion, mainly a container that holds the definition and
# standardizes it without camelizing it.
class Jets::Resource
  class Associated
    extend Memoist

    attr_reader :definition
    def initialize(*definition)
      @definition = definition.flatten
    end

    def logical_id
      standardized.keys.first
    end

    def attributes
      standardized.values.first
    end

    def standardized
      standardizer = Standardizer.new(definition)
      standardizer.standarize(definition) # doesnt camelize keys yet
    end
    memoize :standardized
  end
end

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
jets-fs-1.6.10 lib/jets/resource/associated.rb
jets-1.6.9 lib/jets/resource/associated.rb
jets-1.6.8 lib/jets/resource/associated.rb
jets-1.6.7 lib/jets/resource/associated.rb
jets-1.6.6 lib/jets/resource/associated.rb
jets-1.6.5 lib/jets/resource/associated.rb
jets-1.6.4 lib/jets/resource/associated.rb
jets-1.6.3 lib/jets/resource/associated.rb
jets-1.6.2 lib/jets/resource/associated.rb
jets-1.6.1 lib/jets/resource/associated.rb
jets-1.6.0 lib/jets/resource/associated.rb
jets-1.5.10 lib/jets/resource/associated.rb
jets-1.5.9 lib/jets/resource/associated.rb
jets-1.5.8 lib/jets/resource/associated.rb
jets-1.5.7 lib/jets/resource/associated.rb
jets-1.5.6 lib/jets/resource/associated.rb
jets-1.5.5 lib/jets/resource/associated.rb
jets-1.5.4 lib/jets/resource/associated.rb
jets-1.5.3 lib/jets/resource/associated.rb
jets-1.5.2 lib/jets/resource/associated.rb