Class: Atlas

Inherits:
Object
  • Object
show all
Includes:
Exercises, HTTParty
Defined in:
lib/atlas.rb

Instance Method Summary collapse

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