Class: Seahorse::Model::Shapes::List
- Defined in:
- lib/seahorse/model/shapes.rb
Instance Attribute Summary collapse
- #max ⇒ Integer? readonly
- #member ⇒ Shape readonly
- #min ⇒ Integer? readonly
Attributes inherited from Shape
#definition, #documentation, #location, #location_name, #name, #shape_map, #type
Instance Method Summary collapse
-
#initialize(definition, options = {}) ⇒ List
constructor
A new instance of List.
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, = {}) super @min = definition['min'] @max = definition['max'] @member = shape_at('member') end |
Instance Attribute Details
#max ⇒ Integer? (readonly)
320 321 322 |
# File 'lib/seahorse/model/shapes.rb', line 320 def max @max end |
#member ⇒ Shape (readonly)
314 315 316 |
# File 'lib/seahorse/model/shapes.rb', line 314 def member @member end |
#min ⇒ Integer? (readonly)
317 318 319 |
# File 'lib/seahorse/model/shapes.rb', line 317 def min @min end |