Sha256: 38c7beb2b8282e95cdf1c59c3a61be9043fb9b4a00e33d30cf3f5e26c107c930
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
module Arbetsformedlingen ApplicationMethodSchema = Dry::Validation.Params do configure do config.type_specs = true config.messages_file = File.expand_path('../../../../config/locales/errors.yml', __FILE__) predicates(Predicates) end required(:external, Types::Bool).filled required(:summary, Types::StrippedString).filled required(:url, Types::StrippedString).filled(:url?) end class ApplicationMethod < Model def initialize(hash) super(ApplicationMethodSchema.call(hash)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arbetsformedlingen-0.5.0 | lib/arbetsformedlingen/models/application_method.rb |