class Thumbtack::Types::Text

Handles validation of text values as supported by Pinboard

@api private

Constants

MAXIMUM_LENGTH

Maximum length of a text value

Public Class Methods

validate(value) click to toggle source

Validate text

@param [String] value

text to validate

@return [self]

@raise [Types::ValidationError]

if the value is longer than 65536 characters
# File lib/thumbtack/types/text.rb, line 21
def self.validate(value)
  LengthValidation.validate value, MAXIMUM_LENGTH
  self
end