class Seahorse::Model::Shapes::Shape
Attributes
@return [String, nil]
@return [String]
@return [Boolean]
Public Class Methods
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
Source
# File lib/seahorse/model/shapes.rb, line 124 def [](key) @metadata[key.to_s] end
Gets metadata for the given ‘key`.
Source
# File lib/seahorse/model/shapes.rb, line 129 def []=(key, value) @metadata[key.to_s] = value end
Sets metadata for the given ‘key`.