@return [Boolean]
@return [String, nil]
@return [Boolean]
@return [Shape]
# File lib/seahorse/model/shapes.rb, line 9 def initialize(options = {}) @metadata = {} @required = false @deprecated = false options.each do |key, value| if key == :metadata value.each do |k,v| self[k] = v end else send("#{key}=", value) end end end
Gets metadata for the given `key`.
# File lib/seahorse/model/shapes.rb, line 55 def [](key) if @metadata.key?(key.to_s) @metadata[key.to_s] else @shape[key.to_s] end end
Sets metadata for the given `key`.
# File lib/seahorse/model/shapes.rb, line 64 def []=(key, value) @metadata[key.to_s] = value end
@return [String, nil]
# File lib/seahorse/model/shapes.rb, line 37 def location @location || (shape && shape[:location]) end
# File lib/seahorse/model/shapes.rb, line 41 def location= location @location = location end
@return [String, nil]
# File lib/seahorse/model/shapes.rb, line 46 def location_name @location_name || (shape && shape[:location_name]) end
# File lib/seahorse/model/shapes.rb, line 50 def location_name= location_name @location_name = location_name end