class Seahorse::Model::Shapes::ShapeRef
Attributes
deprecated[RW]
@return [Boolean]
document[RW]
@return [Boolean]
documentation[RW]
@return [String, nil]
event[RW]
@return [Boolean]
eventheader[RW]
@return [Boolean]
eventheader_type[RW]
@return [Boolean]
eventpayload[RW]
@return [Boolean]
eventpayload_type[RW]
@return [String]
eventstream[RW]
@return [Boolean]
required[RW]
@return [Boolean]
shape[RW]
@return [Shape]
Public Class Methods
new(options = {})
click to toggle 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
[](key)
click to toggle source
Gets metadata for the given ‘key`.
# 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
[]=(key, value)
click to toggle source
Sets metadata for the given ‘key`.
# File lib/seahorse/model/shapes.rb, line 95 def []=(key, value) @metadata[key.to_s] = value end
location()
click to toggle source
@return [String, nil]
# File lib/seahorse/model/shapes.rb, line 68 def location @location || (shape && shape[:location]) end
location=(location)
click to toggle source
# File lib/seahorse/model/shapes.rb, line 72 def location= location @location = location end
location_name()
click to toggle source
@return [String, nil]
# File lib/seahorse/model/shapes.rb, line 77 def location_name @location_name || (shape && shape['locationName']) end
location_name=(location_name)
click to toggle source
# File lib/seahorse/model/shapes.rb, line 81 def location_name= location_name @location_name = location_name end