Class: Otter::Trackback
- Inherits:
-
Base
- Object
- Base
- Otter::Trackback
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
#author ⇒ Object
24
25
26
|
# File 'lib/otter/trackback.rb', line 24
def author
@author ||= Author.new(self.data['author'])
end
|
#content ⇒ Object
12
13
14
|
# File 'lib/otter/trackback.rb', line 12
def content
self.data['content']
end
|
#date ⇒ Object
8
9
10
|
# File 'lib/otter/trackback.rb', line 8
def date
Time.at(Integer(self.data['date']))
end
|
#date_alpha ⇒ Object
20
21
22
|
# File 'lib/otter/trackback.rb', line 20
def date_alpha
self.data['date_alpha']
end
|
#permalink_url ⇒ Object
4
5
6
|
# File 'lib/otter/trackback.rb', line 4
def permalink_url
self.data['permalink_url']
end
|
#type ⇒ Object
16
17
18
|
# File 'lib/otter/trackback.rb', line 16
def type
self.data['type']
end
|