Class: Twat::Endpoint
- Inherits:
-
Object
- Object
- Twat::Endpoint
- Defined in:
- lib/twat/endpoint.rb
Overview
Proxies to the actual endpoint classes
Class Method Summary collapse
Class Method Details
.new(endpoint) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/twat/endpoint.rb', line 11 def self.new(endpoint) begin @implementation = { :twitter => Endpoints::Twitter, :"identi.ca" => Endpoints::Identica }[endpoint].new rescue NoMethodError raise Exceptions::NoSuchEndpoint end end |