class Seahorse::Model::Shapes::ShapeRef
Attributes
@return [Boolean]
@return [Boolean]
@return [String, nil]
@return [Boolean]
@return [Boolean]
@return [Boolean]
@return [Boolean]
@return [String]
@return [Boolean]
@return [Boolean]
@return [Shape]
Public Class Methods
Source
# File lib/seahorse/model/shapes.rb, line 11 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
Public Instance Methods
Source
# File lib/seahorse/model/shapes.rb, line 86 def [](key) if @metadata.key?(key.to_s) @metadata[key.to_s] elsif @shape @shape[key.to_s] end end
Gets metadata for the given ‘key`.
Source
# File lib/seahorse/model/shapes.rb, line 95 def []=(key, value) @metadata[key.to_s] = value end
Sets metadata for the given ‘key`.
Source
# File lib/seahorse/model/shapes.rb, line 68 def location @location || (shape && shape[:location]) end
@return [String, nil]
Source
# File lib/seahorse/model/shapes.rb, line 72 def location= location @location = location end
Source
# File lib/seahorse/model/shapes.rb, line 77 def location_name @location_name || (shape && shape['locationName']) end
@return [String, nil]
Source
# File lib/seahorse/model/shapes.rb, line 81 def location_name= location_name @location_name = location_name end