Class: FeedTools::Link
- Inherits:
-
Object
- Object
- FeedTools::Link
- Defined in:
- lib/feed_tools/feed_structures.rb
Overview
Represents a simple hyperlink
Instance Attribute Summary collapse
-
#href ⇒ Object
(also: #url)
The url that is being linked to.
-
#hreflang ⇒ Object
The language of the resource being linked to.
-
#length ⇒ Object
The length of the resource being linked to in bytes.
-
#rel ⇒ Object
The relation type of the link.
-
#title ⇒ Object
The title of the hyperlink.
-
#type ⇒ Object
The mime type of the link.
Instance Attribute Details
#href ⇒ Object Also known as: url
The url that is being linked to
117 118 119 |
# File 'lib/feed_tools/feed_structures.rb', line 117 def href @href end |
#hreflang ⇒ Object
The language of the resource being linked to
119 120 121 |
# File 'lib/feed_tools/feed_structures.rb', line 119 def hreflang @hreflang end |
#length ⇒ Object
The length of the resource being linked to in bytes
127 128 129 |
# File 'lib/feed_tools/feed_structures.rb', line 127 def length @length end |
#rel ⇒ Object
The relation type of the link
121 122 123 |
# File 'lib/feed_tools/feed_structures.rb', line 121 def rel @rel end |
#title ⇒ Object
The title of the hyperlink
125 126 127 |
# File 'lib/feed_tools/feed_structures.rb', line 125 def title @title end |
#type ⇒ Object
The mime type of the link
123 124 125 |
# File 'lib/feed_tools/feed_structures.rb', line 123 def type @type end |