Class: Foursquare::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/foursquare/base.rb

Direct Known Subclasses

Checkin, User, Venue

Class Method Summary collapse

Class Method Details

.authenticationObject



11
12
13
# File 'lib/foursquare/base.rb', line 11

def self.authentication
  @@authentication
end

.connect(username, password) ⇒ Object



3
4
5
# File 'lib/foursquare/base.rb', line 3

def self.connect(username, password)
  @@authentication = {:username => username, :password => password}
end

.latitudeObject



19
20
21
# File 'lib/foursquare/base.rb', line 19

def self.latitude
  location.lat
end

.locationObject



15
16
17
# File 'lib/foursquare/base.rb', line 15

def self.location
  @@location
end

.location=(location) ⇒ Object



7
8
9
# File 'lib/foursquare/base.rb', line 7

def self.location=(location)
  @@location = GeoKit::LatLng.normalize(location)
end

.longitudeObject



23
24
25
# File 'lib/foursquare/base.rb', line 23

def self.longitude
  location.lng
end