lib/gooddata/rest/client.rb in gooddata-0.6.15 vs lib/gooddata/rest/client.rb in gooddata-0.6.16

- old
+ new

@@ -222,23 +222,21 @@ # @param uri [String] Target URI def get(uri, opts = {}, & block) @connection.get uri, opts, & block end - # FIXME: Invstigate _file argument - def get_project_webdav_path(_file, opts = { :project => GoodData.project }) + def project_webdav_path(opts = { :project => GoodData.project }) p = opts[:project] fail ArgumentError, 'No :project specified' if p.nil? project = GoodData::Project[p, opts] fail ArgumentError, 'Wrong :project specified' if project.nil? u = URI(project.links['uploads']) URI.join(u.to_s.chomp(u.path.to_s), '/project-uploads/', "#{project.pid}/") end - # FIXME: Invstigate _file argument - def get_user_webdav_path(_file, opts = { :project => GoodData.project }) + def user_webdav_path(opts = { :project => GoodData.project }) p = opts[:project] fail ArgumentError, 'No :project specified' if p.nil? project = GoodData::Project[p, opts] fail ArgumentError, 'Wrong :project specified' if project.nil?