Module: Otter

Defined in:
lib/otter/author.rb,
lib/otter-rb.rb,
lib/otter/tag.rb,
lib/otter/base.rb,
lib/otter/link.rb,
lib/otter/post.rb,
lib/otter/count.rb,
lib/otter/error.rb,
lib/otter/topic.rb,
lib/otter/urlinfo.rb,
lib/otter/response.rb,
lib/otter/trackback.rb,
lib/otter/connection.rb

Overview

“name” : “Barack Obama”, “url” : “twitter.com/barackobama”, “type” : “twitter”, “nick” : “barackobama”, “description” : “44th President of the United States”, “topsy_author_url” : “topsy.com/twitter/barackobama”, “influence_level” : “5”

Defined Under Namespace

Classes: Author, Base, Connection, Count, Error, Link, Post, Response, Tag, Topic, Trackback, UrlInfo

Class Method Summary collapse

Class Method Details

.connect(identifier, &block) ⇒ Object



22
23
24
25
26
# File 'lib/otter-rb.rb', line 22

def self.connect(identifier, &block)
  EM.run {
    yield Connection.new(identifier)
  }
end