class Seahorse::Model::Shapes::String
Attributes
enum[R]
@return [Set, nil]
max[R]
@return [Integer, nil]
min[R]
@return [Integer, nil]
pattern[R]
@return [String, nil]
Public Class Methods
new(definition, options = {})
click to toggle source
Calls superclass method
Seahorse::Model::Shapes::Shape.new
# File lib/seahorse/model/shapes.rb, line 354 def initialize(definition, options = {}) super @enum = Set.new(definition['enum']) if definition['enum'] @pattern = definition['pattern'] @min = definition['min'] @max = definition['max'] end