module ConnectClient

Constants

VERSION

Public Class Methods

configure() { |config| ... } click to toggle source
# File lib/connect_client.rb, line 11
def configure
  config = Configuration.new
  yield(config)

  @client = ConnectClient::Client.new config
end
gem_root() click to toggle source
# File lib/connect_client.rb, line 7
def gem_root
  File.expand_path '../..', __FILE__
end
generate_filtered_key(key_json, master_key) click to toggle source
# File lib/connect_client.rb, line 22
def generate_filtered_key(key_json, master_key)
  ConnectClient::Security.generate_filtered_key key_json, master_key
end
method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/connect_client.rb, line 26
def method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end
reset() click to toggle source
# File lib/connect_client.rb, line 18
def reset
  @client = nil
end
respond_to?(method) click to toggle source
Calls superclass method
# File lib/connect_client.rb, line 31
def respond_to?(method)
  return (!@client.nil? && @client.respond_to?(method)) || super
end

Private Class Methods

client() click to toggle source
# File lib/connect_client.rb, line 37
def client
  raise UnconfiguredError if @client.nil?

  @client
end