Skip to content

Instantly share code, notes, and snippets.

@richm
Created December 15, 2014 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richm/490f9f5b10f0c9bfa562 to your computer and use it in GitHub Desktop.
Save richm/490f9f5b10f0c9bfa562 to your computer and use it in GitHub Desktop.
def self.get_session(credentials)
@session =|| get_private_session(credentials)
@session
end
def self.get_private_session(credentials)
configuration = make_configuration(credentials)
session = ::Aviator::Session.new(:config => configuration)
session.authenticate unless credentials.nil?
session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment