lib/idonethis/index.rb in idonethis-cli-0.11.0 vs lib/idonethis/index.rb in idonethis-cli-0.12.0
- old
+ new
@@ -3,13 +3,25 @@
class << self
def dones(params={})
%Q{#{dones_base_earl}?#{params.map{|k,v| "#{k}=#{v}"}.join('&')}}
end
+ def teams()
+ teams_base_earl
+ end
+
private
def dones_base_earl
- "https://idonethis.com/api/v0.1/dones/"
+ "#{base_earl}/dones/"
+ end
+
+ def teams_base_earl
+ "#{base_earl}/teams/"
+ end
+
+ def base_earl
+ "https://idonethis.com/api/v0.1"
end
end
end
end
\ No newline at end of file