Class: Nucleo::Models::CheckTypes::Length
- Defined in:
- lib/nucleo/models/check_types/length.rb
Instance Method Summary collapse
-
#max_length ⇒ String
Returns the max allowed length.
-
#min_length ⇒ String
Returns the min allowed length.
- #type ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from Nucleo::Models::CheckTypes::Base
Instance Method Details
#max_length ⇒ String
Returns the max allowed length
20 21 22 |
# File 'lib/nucleo/models/check_types/length.rb', line 20 def max_length Integer(@attributes['max_length']) end |
#min_length ⇒ String
Returns the min allowed length
13 14 15 |
# File 'lib/nucleo/models/check_types/length.rb', line 13 def min_length Integer(@attributes['min_length']) end |
#type ⇒ Object
6 7 8 |
# File 'lib/nucleo/models/check_types/length.rb', line 6 def type 'length' end |