Sha256: d20cd9bdd1fb7ae69043a4685355c2f1a1dbf821e0c4e51f4b42856d5dd213c3

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

module Yaks
  class Resource
    class Link
      include Attribs.new(:rel, :uri, options: {}.freeze)

      def title
        options[:title]
      end

      def templated?
        options.fetch(:templated) { false }
      end

      def rel?(rel)
        rel().eql? rel
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yaks-0.13.0 lib/yaks/resource/link.rb
yaks-0.12.0 lib/yaks/resource/link.rb
yaks-0.11.0 lib/yaks/resource/link.rb