Class: Typekit::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/typekit/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(config: :default, **options) ⇒ Client

Returns a new instance of Client.



11
12
13
# File 'lib/typekit/client.rb', line 11

def initialize(config: :default, **options)
  @config = Configuration.build(config, **options)
end

Instance Method Details

#perform(*arguments) ⇒ Object



15
16
17
# File 'lib/typekit/client.rb', line 15

def perform(*arguments)
  translate(dispatch(trace(*arguments)))
end