Class: Seahorse::Model::Shapes::List

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 = {}) ⇒ List

Returns a new instance of List.



306
307
308
309
310
311
# File 'lib/seahorse/model/shapes.rb', line 306

def initialize(definition, options = {})
  super
  @min = definition['min']
  @max = definition['max']
  @member = shape_at('member')
end

Instance Attribute Details

#maxInteger? (readonly)

Returns:



320
321
322
# File 'lib/seahorse/model/shapes.rb', line 320

def max
  @max
end

#memberShape (readonly)

Returns:



314
315
316
# File 'lib/seahorse/model/shapes.rb', line 314

def member
  @member
end

#minInteger? (readonly)

Returns:



317
318
319
# File 'lib/seahorse/model/shapes.rb', line 317

def min
  @min
end