Class: Zipmark::Link

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Link

Returns a new instance of Link.



5
6
7
8
9
10
# File 'lib/zipmark/link.rb', line 5

def initialize(options)
  link = Util.stringify_keys(options)
  @rel = link["rel"]
  @title = link["title"]
  @href = link["href"]
end

Instance Attribute Details

#hrefObject

Returns the value of attribute href.



3
4
5
# File 'lib/zipmark/link.rb', line 3

def href
  @href
end

#relObject

Returns the value of attribute rel.



3
4
5
# File 'lib/zipmark/link.rb', line 3

def rel
  @rel
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/zipmark/link.rb', line 3

def title
  @title
end