Class: Otter::Link

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

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

create, #initialize

Constructor Details

This class inherits a constructor from Otter::Base

Instance Method Details

#contentObject



24
25
26
# File 'lib/otter/link.rb', line 24

def content
  self.data['content']
end

#highlightObject



32
33
34
# File 'lib/otter/link.rb', line 32

def highlight
  self.data['highlight']
end

#hitsObject



20
21
22
# File 'lib/otter/link.rb', line 20

def hits
  Integer(self.data['hits'])
end

#scoreObject



28
29
30
# File 'lib/otter/link.rb', line 28

def score
  Float(self.data['score'])
end

#titleObject



12
13
14
# File 'lib/otter/link.rb', line 12

def title
  self.data['title']
end

#topsy_trackback_urlObject



4
5
6
# File 'lib/otter/link.rb', line 4

def topsy_trackback_url
  self.data['topsy_trackback_url']
end

#trackback_totalObject



16
17
18
# File 'lib/otter/link.rb', line 16

def trackback_total
  self.data['trackback_total']
end

#urlObject



8
9
10
# File 'lib/otter/link.rb', line 8

def url
  self.data['url']
end