Class: Atlas
Instance Method Summary collapse
-
#initialize(api_key, api_base_path = "localhost:3000/api/v1") ⇒ Atlas
constructor
A new instance of Atlas.
Methods included from Exercises
#get_exercise, #get_exercises, #update_exercise
Methods included from BaseAtlasClient
#auth_header, #convert_keys, #convert_response, #handle_timeouts, #success?, #whitelist_params
Constructor Details
#initialize(api_key, api_base_path = "localhost:3000/api/v1") ⇒ Atlas
Returns a new instance of Atlas.
12 13 14 15 |
# File 'lib/atlas.rb', line 12 def initialize(api_key, api_base_path="localhost:3000/api/v1") @api_base_path = api_base_path @api_key = api_key end |