Sha256: 8c0b1da62de5073ca52d33ef18eea0d8b5e3be2d43d7acae696096f67eacd113
Contents?: true
Size: 434 Bytes
Versions: 26
Compression:
Stored size: 434 Bytes
Contents
module JSONAPIonify::Structure module Maps class Links < Base value_is Objects::Link validate_each! message: 'must be url string or valid link object' do |obj, key, value| case value when String uri = URI.parse(value) uri.scheme.present? when Objects::Link true else false end || !obj.permitted_key?(key) end end end end
Version data entries
26 entries across 26 versions & 1 rubygems