Module: Typekit::Client::Proxy

Included in:
Typekit::Collection::Base, Element::Base
Defined in:
lib/typekit/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



66
67
68
# File 'lib/typekit/client.rb', line 66

def client
  @client
end

#tokenObject

Returns the value of attribute token.



66
67
68
# File 'lib/typekit/client.rb', line 66

def token
  @token
end

Instance Method Details

#connect(object = nil, token = Helper.tokenize(self.class)) ⇒ Object



68
69
70
71
# File 'lib/typekit/client.rb', line 68

def connect(object = nil, token = Helper.tokenize(self.class))
  self.client = object.respond_to?(:client) ? object.client : object
  self.token = token
end