Sha256: 0897cc4752bc9821666309cd0ea8a001b948fa2b96dd351607b7ab27c36a0e0e
Contents?: true
Size: 386 Bytes
Versions: 4
Compression:
Stored size: 386 Bytes
Contents
# -*- coding: utf-8 -*- module Yaks class Mapper module MapLinks def map_links mapped = links.map &send_with_args(:map_to_resource_link, self) unless links.any? {|link| link.rel? :profile } mapped = mapped.cons(Resource::Link.new(:profile, profile_registry.find_by_type(profile_type), {})) end mapped end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yaks-0.3.1 | lib/yaks/mapper/map_links.rb |
yaks-0.3.0 | lib/yaks/mapper/map_links.rb |
yaks-0.2.0 | lib/yaks/mapper/map_links.rb |
yaks-0.1.0 | lib/yaks/mapper/map_links.rb |