Class: FeedTools::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/feed_tools/feed_structures.rb

Overview

Represents a simple hyperlink

Instance Attribute Summary collapse

Instance Attribute Details

#hrefObject 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

#hreflangObject

The language of the resource being linked to



119
120
121
# File 'lib/feed_tools/feed_structures.rb', line 119

def hreflang
  @hreflang
end

#lengthObject

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

#relObject

The relation type of the link



121
122
123
# File 'lib/feed_tools/feed_structures.rb', line 121

def rel
  @rel
end

#titleObject

The title of the hyperlink



125
126
127
# File 'lib/feed_tools/feed_structures.rb', line 125

def title
  @title
end

#typeObject

The mime type of the link



123
124
125
# File 'lib/feed_tools/feed_structures.rb', line 123

def type
  @type
end