Module: Roadmap

Included in:
Apillary
Defined in:
lib/apillary/roadmap.rb

Instance Method Summary collapse

Instance Method Details

#get_checkpoints(id) ⇒ Object



7
8
9
10
# 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) ⇒ Object



2
3
4
5
# 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