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.
310 311 312 313 314 315 |
# File 'lib/seahorse/model/shapes.rb', line 310 def initialize(definition, = {}) super @min = definition['min'] @max = definition['max'] @member = shape_at('member') end |
Instance Attribute Details
#max ⇒ Integer? (readonly)
324 325 326 |
# File 'lib/seahorse/model/shapes.rb', line 324 def max @max end |
#member ⇒ Shape (readonly)
318 319 320 |
# File 'lib/seahorse/model/shapes.rb', line 318 def member @member end |
#min ⇒ Integer? (readonly)
321 322 323 |
# File 'lib/seahorse/model/shapes.rb', line 321 def min @min end |