Class: Twat::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/twat/endpoint.rb

Overview

Proxies to the actual endpoint classes

Class Method Summary collapse

Class Method Details

.new(endpoint) ⇒ Object



9
10
11
12
13
14
# File 'lib/twat/endpoint.rb', line 9

def self.new(endpoint)
  @implementation = {
    :twitter => Endpoints::Twitter,
    :"identi.ca" => Endpoints::Identica
  }[endpoint].new
end