class JSON::Schema::LengthLimitAttribute

Public Class Methods

acceptable_type() click to toggle source
# File lib/json-schema/attributes/limits/length.rb, line 6
def self.acceptable_type
  String
end
value(data) click to toggle source
# File lib/json-schema/attributes/limits/length.rb, line 10
def self.value(data)
  data.length
end