lib/runcible/resources/repository.rb in runcible-0.1.2 vs lib/runcible/resources/repository.rb in runcible-0.1.3

- old
+ new

@@ -34,12 +34,12 @@ def self.create(id, optional={}) required = required_params(binding.send(:local_variables), binding) call(:post, path, :payload => { :required => required, :optional => optional }) end - def self.retrieve(id, details=true) - call(:get, path(id) + "?details=#{details}") + def self.retrieve(id, params={}) + call(:get, path(id), :params => params) end def self.update(id, optional={}) call(:put, path(id), :payload => { :delta => optional }) end @@ -70,10 +70,10 @@ def self.sync(id, optional={}) call(:post, "#{path(id)}actions/sync/", :payload => { :optional => optional }) end def self.sync_history(id) - call(:get, "#{path(id)}/history/sync/") + call(:get, "#{path(id)}/history/sync/") end def self.unit_copy(destination_repo_id, source_repo_id, optional={:criteria=>{}}) required = required_params(binding.send(:local_variables), binding, ["destination_repo_id"]) call(:post, "#{path(destination_repo_id)}actions/associate/",