Class: Otter::Trackback

Inherits:
Base
  • Object
show all
Defined in:
lib/otter/trackback.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

#authorObject



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

def author
  @author ||= Author.new(self.data['author'])
end

#contentObject



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

def content
  self.data['content']
end

#dateObject



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

def date
  Time.at(Integer(self.data['date']))
end

#date_alphaObject



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

def date_alpha
  self.data['date_alpha']
end


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

def permalink_url
  self.data['permalink_url']
end

#typeObject



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

def type
  self.data['type']
end