Module: Typekit::Client

Defined in:
lib/typekit/client.rb

Defined Under Namespace

Modules: InstanceMethods, Proxy

Class Method Summary collapse

Class Method Details

.new(options) ⇒ Object

Raises:



3
4
5
6
7
8
9
10
11
# File 'lib/typekit/client.rb', line 3

def self.new(options)
  raise Error, 'Token is missing' unless options.key?(:token)

  client = Module.new
  client.extend(InstanceMethods)
  client.configure(Typekit.defaults.merge(options))

  client
end