Class: Everlog::Dom::Value::Twitter

Inherits:
Everlog::Dom::Value show all
Includes:
Maybe
Defined in:
lib/everlog/dom/value/twitter.rb

Instance Method Summary collapse

Methods included from Maybe

#maybe

Methods inherited from Everlog::Dom::Value

#initialize, #parse_to_His

Constructor Details

This class inherits a constructor from Everlog::Dom::Value

Instance Method Details

#created_atObject



9
10
11
# File 'lib/everlog/dom/value/twitter.rb', line 9

def created_at
  parse_to_His(maybe(@response).created_at.to_s)
end

#tweetObject



5
6
7
# File 'lib/everlog/dom/value/twitter.rb', line 5

def tweet
  maybe(@response).text.to_s
end