Module: Roadmap
- Included in:
- Kele
- Defined in:
- lib/roadmap.rb
Instance Method Summary collapse
Instance Method Details
#get_checkpoint(checkpoint_id) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/roadmap.rb', line 13 def get_checkpoint(checkpoint_id) # example use 2481 response = self.class.get("/checkpoints/#{checkpoint_id}", headers: { "authorization" => @auth_token }) if response.success? @checkpoint = JSON.parse(response.body) else raise response.response end end |
#get_roadmap(roadmap_id) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/roadmap.rb', line 2 def get_roadmap(roadmap_id) #example use 38 response = self.class.get("/roadmaps/#{roadmap_id}", headers: { "authorization" => @auth_token }) if response.success? @roadmap = JSON.parse(response.body) else raise response.response end end |