Sha256: c3bb9875b5a3b447291c77788cef2a44964a411e5f97a6a7f49f9684498bd6bc

Contents?: true

Size: 327 Bytes

Versions: 6

Compression:

Stored size: 327 Bytes

Contents

module GoogleHelpers
  include_class 'java.net.URL'
  
  def url_for(url_or_string)
    (url_or_string.kind_of? String) ? URL.new(url_or_string) : url_or_string
  end
  
  def update_attributes(attributes)
    attributes.each do |k, v|
      self.send("#{k}=".to_sym, (v.kind_of? Time)? v.to_joda_time : v)
    end
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gdata-jruby-client-0.7.5 lib/google_helpers.rb
gdata-jruby-client-0.7.4 lib/google_helpers.rb
gdata-jruby-client-0.7.3 lib/google_helpers.rb
gdata-jruby-client-0.7.2 lib/google_helpers.rb
gdata-jruby-client-0.7.1 lib/google_helpers.rb
gdata-jruby-client-0.7.0 lib/google_helpers.rb