Class: Seahorse::Model::Shapes::Map
- Inherits:
-
Shape
- Object
- Shape
- Seahorse::Model::Shapes::Map
show all
- Defined in:
- lib/seahorse/model/shapes.rb
Instance Attribute Summary collapse
Attributes inherited from Shape
#definition, #documentation, #location, #location_name, #name, #shape_map, #type
Instance Method Summary
collapse
Methods inherited from Shape
#inspect, #metadata, new, #with
Constructor Details
#initialize(definition, options = {}) ⇒ Map
Returns a new instance of Map.
326
327
328
329
330
331
332
|
# File 'lib/seahorse/model/shapes.rb', line 326
def initialize(definition, options = {})
super
@min = definition['min']
@max = definition['max']
@key = shape_at('key')
@value = shape_at('value')
end
|
Instance Attribute Details
335
336
337
|
# File 'lib/seahorse/model/shapes.rb', line 335
def key
@key
end
|
344
345
346
|
# File 'lib/seahorse/model/shapes.rb', line 344
def max
@max
end
|
341
342
343
|
# File 'lib/seahorse/model/shapes.rb', line 341
def min
@min
end
|
338
339
340
|
# File 'lib/seahorse/model/shapes.rb', line 338
def value
@value
end
|