Sha256: 46d23ad2a7b34b895279b20d0e291e968c984617339ec399ccd4ad5eff83f3c2

Contents?: true

Size: 691 Bytes

Versions: 34

Compression:

Stored size: 691 Bytes

Contents

require 'totter/version'
require 'totter/client'
require 'totter/error'

# Totter, as in teeter-totter, let's you work with the Seesaw API in Ruby.
module Totter
  class << self
    # Alias for Totter::Client.new
    #
    # @return [Totter::Client]
    def new(options = {})
      Client.new(options)
    end

    # Delegate to Totter::Client.new
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    # Forward respond_to? to Totter::Client.new
    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
totter-0.4.8 lib/totter.rb
totter-0.4.7 lib/totter.rb
totter-0.4.6 lib/totter.rb
totter-0.4.5 lib/totter.rb
totter-0.4.4 lib/totter.rb
totter-0.4.3 lib/totter.rb
totter-0.4.2 lib/totter.rb
totter-0.4.1 lib/totter.rb
totter-0.4.0 lib/totter.rb
totter-0.3.9 lib/totter.rb
totter-0.3.8 lib/totter.rb
totter-0.3.7 lib/totter.rb
totter-0.3.6 lib/totter.rb
totter-0.3.5 lib/totter.rb
totter-0.3.4 lib/totter.rb
totter-0.3.3 lib/totter.rb
totter-0.3.2 lib/totter.rb
totter-0.3.1 lib/totter.rb
totter-0.3.0 lib/totter.rb
totter-0.2.14 lib/totter.rb