module Roadmap

Public Instance Methods

get_checkpoints(id) click to toggle source
# File lib/apillary/roadmap.rb, line 7
def get_checkpoints(id)
  response = self.class.get("https://www.bloc.io/api/v1/checkpoints/#{id}", headers: { "authorization" => @auth_token })
  @checkpoints = JSON.parse(response.body)
end
get_roadmap(id) click to toggle source
# File lib/apillary/roadmap.rb, line 2
def get_roadmap(id)
  response = self.class.get("https://www.bloc.io/api/v1/roadmaps/#{id}", headers: { "authorization" => @auth_token })
  @roadmap = JSON.parse(response.body)
end