class Seahorse::Model::Shapes::ShapeRef

def [](key)

Gets metadata for the given `key`.
def [](key)
  if @metadata.key?(key.to_s)
    @metadata[key.to_s]
  else
    @shape[key.to_s]
  end
end

def []=(key, value)

Sets metadata for the given `key`.
def []=(key, value)
  @metadata[key.to_s] = value
end

def initialize(options = {})

def initialize(options = {})
  @metadata = {}
  @required = false
  @deprecated = false
  @location = nil
  @location_name = nil
  @event = false
  @eventstream = false
  @eventpayload = false
  @eventpayload_type = ''.freeze
  @eventheader = false
  @eventheader_type = ''.freeze
  options.each do |key, value|
    if key == :metadata
      value.each do |k,v|
        self[k] = v
      end
    else
      send("#{key}=", value)
    end
  end
end

def location

Returns:
  • (String, nil) -
def location
  @location || (shape && shape[:location])
end

def location= location

def location= location
  @location = location
end

def location_name

Returns:
  • (String, nil) -
def location_name
  @location_name || (shape && shape[:location_name])
end

def location_name= location_name

def location_name= location_name
  @location_name = location_name
end