Class: Yaks::Resource::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/yaks/resource/link.rb

Instance Method Summary collapse

Instance Method Details

#rel?(rel) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/yaks/resource/link.rb', line 14

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

#templated?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/yaks/resource/link.rb', line 10

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

#titleObject



6
7
8
# File 'lib/yaks/resource/link.rb', line 6

def title
  options[:title]
end