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.



330
331
332
333
334
335
336
# File 'lib/seahorse/model/shapes.rb', line 330

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:



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

def key
  @key
end

#maxInteger? (readonly)

Returns:



348
349
350
# File 'lib/seahorse/model/shapes.rb', line 348

def max
  @max
end

#minInteger? (readonly)

Returns:



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

def min
  @min
end

#valueShape (readonly)

Returns:



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

def value
  @value
end