Class: Seahorse::Model::Shapes::Integer

Inherits:
Shape
  • Object
show all
Defined in:
lib/seahorse/model/shapes.rb

Direct Known Subclasses

Long

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

Returns a new instance of Integer.



411
412
413
414
415
# File 'lib/seahorse/model/shapes.rb', line 411

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

Instance Attribute Details

#maxInteger? (readonly)

Returns:



421
422
423
# File 'lib/seahorse/model/shapes.rb', line 421

def max
  @max
end

#minInteger? (readonly)

Returns:



418
419
420
# File 'lib/seahorse/model/shapes.rb', line 418

def min
  @min
end