Sha256: 2631a767106844cd91a2536942e2bc315c1782819acf6a30a0c5ab321d58bd98

Contents?: true

Size: 243 Bytes

Versions: 8

Compression:

Stored size: 243 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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yaks-0.7.4 lib/yaks/resource/link.rb
yaks-0.7.3 lib/yaks/resource/link.rb
yaks-0.7.2 lib/yaks/resource/link.rb
yaks-0.7.1 lib/yaks/resource/link.rb
yaks-0.7.0 lib/yaks/resource/link.rb
yaks-0.6.2 lib/yaks/resource/link.rb
yaks-0.6.1 lib/yaks/resource/link.rb
yaks-0.6.0 lib/yaks/resource/link.rb