Class: Seahorse::Model::Shapes::Integer
- Defined in:
- lib/seahorse/model/shapes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #max ⇒ Integer? readonly
- #min ⇒ Integer? readonly
Attributes inherited from Shape
#definition, #documentation, #location, #location_name, #name, #shape_map, #type
Instance Method Summary collapse
-
#initialize(definition, options = {}) ⇒ Integer
constructor
A new instance of Integer.
Methods inherited from Shape
#inspect, #metadata, new, #with
Constructor Details
#initialize(definition, options = {}) ⇒ Integer
Returns a new instance of Integer.
411 412 413 414 415 |
# File 'lib/seahorse/model/shapes.rb', line 411 def initialize(definition, = {}) @min = definition['min'] @max = definition['max'] super end |