Sha256: 91fe3e056c2a32847657037db060401908b6ea537ac1e00b4093807cc29fc844

Contents?: true

Size: 297 Bytes

Versions: 11

Compression:

Stored size: 297 Bytes

Contents

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

      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

11 entries across 11 versions & 1 rubygems

Version Path
yaks-0.9.0 lib/yaks/resource/link.rb
yaks-0.8.3 lib/yaks/resource/link.rb
yaks-0.8.2 lib/yaks/resource/link.rb
yaks-0.8.1 lib/yaks/resource/link.rb
yaks-0.8.0 lib/yaks/resource/link.rb
yaks-0.8.0.beta2 lib/yaks/resource/link.rb
yaks-0.8.0.beta1 lib/yaks/resource/link.rb
yaks-0.8.0.alpha lib/yaks/resource/link.rb
yaks-0.7.7 lib/yaks/resource/link.rb
yaks-0.7.6 lib/yaks/resource/link.rb
yaks-0.7.5 lib/yaks/resource/link.rb