class Omc::Layer

Attributes

attributes[R]
stack[R]

Public Class Methods

new(stack, attributes) click to toggle source
# File lib/omc/layer.rb, line 11
def initialize stack, attributes
  @stack = stack
  @attributes = attributes
end

Public Instance Methods

instances() click to toggle source
# File lib/omc/layer.rb, line 16
def instances
  @instances ||= @stack.instances.select do |i|
    i[:layer_ids].include? self[:layer_id]
  end
end