Class: Seahorse::Model::Shapes::Map

Inherits:
Shape
  • Object
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

#keyShape (readonly)

Returns:



335
336
337
# File 'lib/seahorse/model/shapes.rb', line 335

def key
  @key
end

#maxInteger? (readonly)

Returns:



344
345
346
# File 'lib/seahorse/model/shapes.rb', line 344

def max
  @max
end

#minInteger? (readonly)

Returns:



341
342
343
# File 'lib/seahorse/model/shapes.rb', line 341

def min
  @min
end

#valueShape (readonly)

Returns:



338
339
340
# File 'lib/seahorse/model/shapes.rb', line 338

def value
  @value
end