Sha256: 4a94bb2ac68d4090dee8aed8cb157ee560283e2687378a0fd37bc567c1d87893

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 Bytes

Contents

module Rockstar
  class Geo < Base
    
      
    # Get events in a specific location. Opts can be
    #
    # * :location => 'madrid'  # A city name from geo.metros
    # * :lat => 50.0, :long => 14.0 # A geo point
    #
    # Additionally you can set the distance from that point with
    #   :distance => 50 # 50 km from the given location
    # 
    def events(opts = {}, force = false)
      get_instance("geo.getEvents", :events, :event, opts, force) 
    end

    def metros(country, force = false)
      get_instance("geo.getMetros", :metros, :metro, {:country => country}, force)
    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rockstar-0.6.3 lib/rockstar/geo.rb
rockstar-0.6.2 lib/rockstar/geo.rb
rockstar-custom-0.6.1 lib/rockstar/geo.rb
rockstar-0.6.1 lib/rockstar/geo.rb
rockstar-0.6.0 lib/rockstar/geo.rb
rockstar-0.5.2 lib/rockstar/geo.rb
rockstar-0.5.1 lib/rockstar/geo.rb
rockstar-0.5.0 lib/rockstar/geo.rb
rockstar-0.4.2 lib/rockstar/geo.rb
rockstar-0.4.1 lib/rockstar/geo.rb
rockstar-0.4.0 lib/rockstar/geo.rb