Module: LeisureKing

Defined in:
lib/leisureking.rb,
lib/leisureking.rb,
lib/leisureking/engine.rb,
lib/leisureking/version.rb

Defined Under Namespace

Modules: API, Authentication, Config Classes: Engine, Error

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.set_credentials_from_environmentObject

For testing purpose only: set the username and password in environment variables to make the tests pass with your test credentials.



18
19
20
21
# File 'lib/leisureking.rb', line 18

def self.set_credentials_from_environment
  Config.api_key 		= ENV["LEISURE_KING_API_KEY"]
  Config.api_secret = ENV["LEISURE_KING_API_SECRET"]
end