class Seahorse::Model::Shapes::Shape
def initialize(definition, options = {})
(**options)
-
:shape_map
(ShapeMap
) --
Parameters:
-
definition
(Hash
) --
def initialize(definition, options = {}) definition['type'] ||= self.class.type @name = definition['shape'] @definition = definition @type = definition['type'] @location = definition['location'] || 'body' @location_name = definition['locationName'] @shape_map = options[:shape_map] || ShapeMap.new end