Class: Nucleo::Models::CheckTypes::Length

Inherits:
Base
  • Object
show all
Defined in:
lib/nucleo/models/check_types/length.rb

Instance Method Summary collapse

Methods inherited from Base

#elements, #initialize

Constructor Details

This class inherits a constructor from Nucleo::Models::CheckTypes::Base

Instance Method Details

#max_lengthString

Returns the max allowed length

Returns:

  • (String)


20
21
22
# File 'lib/nucleo/models/check_types/length.rb', line 20

def max_length
  Integer(@attributes['max_length'])
end

#min_lengthString

Returns the min allowed length

Returns:

  • (String)


13
14
15
# File 'lib/nucleo/models/check_types/length.rb', line 13

def min_length
  Integer(@attributes['min_length'])
end

#typeObject



6
7
8
# File 'lib/nucleo/models/check_types/length.rb', line 6

def type
  'length'
end