class GrowViral::Keystore::Client
Attributes
config[R]
Public Class Methods
new(env)
click to toggle source
# File lib/keystore/client.rb, line 6 def initialize(env) @config = Configuration.new(env) end
Public Instance Methods
account_exists?(app_id, handle)
click to toggle source
# File lib/keystore/client.rb, line 14 def account_exists?(app_id, handle) AccountFetcher.exists?(app_id, handle, config: config) end
create_account(app_id, handle, uid, token, secret)
click to toggle source
# File lib/keystore/client.rb, line 22 def create_account(app_id, handle, uid, token, secret) AccountCreator.create(app_id, handle, uid, token, secret, config: config) end
fetch_account(app_id, handle)
click to toggle source
# File lib/keystore/client.rb, line 18 def fetch_account(app_id, handle) AccountFetcher.fetch(app_id, handle, config: config) end
fetch_application(provider, name)
click to toggle source
# File lib/keystore/client.rb, line 10 def fetch_application(provider, name) ApplicationFetcher.fetch(provider, name, config: config) end