Class: Foursquare::Base
- Inherits:
-
Object
- Object
- Foursquare::Base
- Defined in:
- lib/foursquare/base.rb
Class Method Summary collapse
- .authentication ⇒ Object
- .connect(username, password) ⇒ Object
- .latitude ⇒ Object
- .location ⇒ Object
- .location=(location) ⇒ Object
- .longitude ⇒ Object
Class Method Details
.authentication ⇒ Object
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 |
.latitude ⇒ Object
19 20 21 |
# File 'lib/foursquare/base.rb', line 19 def self.latitude location.lat end |
.location ⇒ Object
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 |
.longitude ⇒ Object
23 24 25 |
# File 'lib/foursquare/base.rb', line 23 def self.longitude location.lng end |