Sha256: 26098f8a5801b50659f3418373ba2a56f302a12fd319f2eda244269f0e1e6198
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 Bytes
Contents
class Java::ComGoogleGdataClient::Query include GoogleHelpers def initialize(options) if options.is_a? Hash super url_for(options.delete(:url)) options.each do |k, v| if self.respond_to? "#{k}=".to_sym self.send("#{k}=".to_sym, (v.kind_of? Time)? v.to_joda_time : v) else name = k.to_s.dasherize case v when Fixnum self.set_integer_custom_parameter(name, v) when Time self.set_string_custom_parameter(name, v.xmlschema) else self.set_string_custom_parameter(name, v.to_s) end end end else super url_for(options) end end end
Version data entries
5 entries across 5 versions & 1 rubygems