class Seahorse::Model::Shapes::Shape

Attributes

documentation[RW]

@return [String, nil]

name[RW]

@return [String]

union[RW]

@return [Boolean]

Public Class Methods

new(options = {}) click to toggle source
# File lib/seahorse/model/shapes.rb, line 103
def initialize(options = {})
  @metadata = {}
  options.each_pair do |key, value|
    if respond_to?("#{key}=")
      send("#{key}=", value)
    else
      self[key] = value
    end
  end
end

Public Instance Methods

[](key) click to toggle source

Gets metadata for the given ‘key`.

# File lib/seahorse/model/shapes.rb, line 124
def [](key)
  @metadata[key.to_s]
end
[]=(key, value) click to toggle source

Sets metadata for the given ‘key`.

# File lib/seahorse/model/shapes.rb, line 129
def []=(key, value)
  @metadata[key.to_s] = value
end