Sha256: d7eae4ffe6a8d01bf9a4b8f99d4a58ccac8019523edfe929370796e01db65125

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

require 'campact_user_service/client'
require 'campact_user_service/session'
require 'campact_user_service/account'

module CampactUserService
  class << self
    def session(session_id, session_cookie_name, options)
      client = CampactUserService::Client.new(options)
      CampactUserService::Session.new(client, session_id, session_cookie_name)
    end

    def account(external_account_id, options)
      client = CampactUserService::Client.new(options)
      CampactUserService::Account.new(client, external_account_id)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
campact_user_service-4.1.1 lib/campact_user_service.rb
campact_user_service-4.1.0 lib/campact_user_service.rb