aboutsummaryrefslogtreecommitdiffstats
path: root/lib/iev_api.rb
blob: 77a10d1ac736b2a6d5a6769f8b8d7d31f884f41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'iev_api/configuration'

module IevApi
  extend Configuration

  class IevError < StandardError; end

  def self.client(options={})
    IevApi::Client.new(options)
  end

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

  def self.respond_to?(method, include_private = false)
    client.respond_to?(method, include_private) || super(method, include_private)
  end
end

require 'iev_api/client'