Class: Calagator::Venue::Geocoder
- Inherits:
-
Struct
- Object
- Struct
- Calagator::Venue::Geocoder
- Defined in:
- app/models/calagator/venue/geocoder.rb
Instance Attribute Summary collapse
-
#venue ⇒ Object
Returns the value of attribute venue.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#venue ⇒ Object
Returns the value of attribute venue
4 5 6 |
# File 'app/models/calagator/venue/geocoder.rb', line 4 def venue @venue end |
Class Method Details
.geocode(venue) ⇒ Object
7 8 9 |
# File 'app/models/calagator/venue/geocoder.rb', line 7 def self.geocode(venue) new(venue).geocode end |
Instance Method Details
#geocode ⇒ Object
11 12 13 14 15 |
# File 'app/models/calagator/venue/geocoder.rb', line 11 def geocode return unless should_geocode? map_geo_to_venue if geo.success log end |