Class: Zipmark::Link
- Inherits:
-
Object
- Object
- Zipmark::Link
- Defined in:
- lib/zipmark/link.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#rel ⇒ Object
Returns the value of attribute rel.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options) ⇒ Link
constructor
A new instance of Link.
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() link = Util.stringify_keys() @rel = link["rel"] @title = link["title"] @href = link["href"] end |
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href.
3 4 5 |
# File 'lib/zipmark/link.rb', line 3 def href @href end |
#rel ⇒ Object
Returns the value of attribute rel.
3 4 5 |
# File 'lib/zipmark/link.rb', line 3 def rel @rel end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/zipmark/link.rb', line 3 def title @title end |