lib/google_apis/api/base/instance_methods.rb in google-apis-0.1.1 vs lib/google_apis/api/base/instance_methods.rb in google-apis-0.1.2
- old
+ new
@@ -20,9 +20,13 @@
params[0] = (params[0] || {}).symbolize_keys
params[0].reverse_merge!(@default_params)
connection.execute self.class, api_method, *params
end
+ def download(uri, to = nil)
+ connection.download self.class, uri, to
+ end
+
def inspect
"#<#{self.class}:#{object_hexid} #{discovered_api.version}:[#{discovered_api.discovered_resources.collect(&:name).sort.join(",")}] {#{@default_params.collect{|k, v| "#{k}:#{v.inspect}"}.join(",")}}>"
end
def method_missing(name, *args)