Sha256: e0a7bb733bb414824390fe3b2516154f8ba276d218d3822000d3a012b950a08a

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

require 'active_model'
require 'uri'

module ApiRegulator
  module Formats
    DATE = ActiveModel::Type::Date::ISO_DATE
    DATETIME = ActiveModel::Type::Time::ISO_DATETIME
    EMAIL = URI::MailTo::EMAIL_REGEXP
    ZIP_CODE = /\A\d{5}(-\d{4})?\z/
    URI = URI::DEFAULT_PARSER.make_regexp
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
api-regulator-0.1.13 lib/api_regulator/formats.rb
api-regulator-0.1.12 lib/api_regulator/formats.rb
api-regulator-0.1.11 lib/api_regulator/formats.rb
api-regulator-0.1.10 lib/api_regulator/formats.rb
api-regulator-0.1.9 lib/api_regulator/formats.rb
api-regulator-0.1.8 lib/api_regulator/formats.rb
api-regulator-0.1.7 lib/api_regulator/formats.rb