Module: CampactUserService

Defined in:
lib/campact_user_service.rb,
lib/campact_user_service/client.rb,
lib/campact_user_service/account.rb,
lib/campact_user_service/session.rb,
lib/campact_user_service/response_error.rb

Defined Under Namespace

Classes: Account, Client, ResponseError, Session

Class Method Summary collapse

Class Method Details

.account(external_account_id, options) ⇒ Object



12
13
14
15
# File 'lib/campact_user_service.rb', line 12

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

.session(session_id, session_cookie_name, options) ⇒ Object



7
8
9
10
# File 'lib/campact_user_service.rb', line 7

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