lib/trav3.rb in trav3-0.0.1 vs lib/trav3.rb in trav3-0.0.2
- old
+ new
@@ -16,10 +16,11 @@
end
def [](repository = nil)
[API_ENDPOINT].tap {|a| a.push("repo/#{@repo}") if repository }.join('/')
end
+ private :[]
def defaults(**args)
(@options ||= Options.new).build(**args)
self
end
@@ -28,9 +29,13 @@
GET.("#{self[true]}/builds#{opts}")
end
def build(id)
GET.("#{self[]}/build/#{id}")
+ end
+
+ def build_jobs(id)
+ GET.("#{self[]}/build/#{id}/jobs")
end
def job(id)
GET.("#{self[]}/job/#{id}")
end