Class: SimpleGeolocation::Geoworkers::Base
- Inherits:
-
Object
- Object
- SimpleGeolocation::Geoworkers::Base
- Defined in:
- lib/simple_geolocation/geoworkers/base.rb
Instance Attribute Summary collapse
-
#geocoder ⇒ Object
readonly
Returns the value of attribute geocoder.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#success ⇒ Object
(also: #success?)
readonly
Returns the value of attribute success.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(geocoder) ⇒ Base
constructor
A new instance of Base.
- #process! ⇒ Object
Constructor Details
#initialize(geocoder) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/simple_geolocation/geoworkers/base.rb', line 8 def initialize(geocoder) @geocoder = geocoder end |
Instance Attribute Details
#geocoder ⇒ Object (readonly)
Returns the value of attribute geocoder.
5 6 7 |
# File 'lib/simple_geolocation/geoworkers/base.rb', line 5 def geocoder @geocoder end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/simple_geolocation/geoworkers/base.rb', line 5 def location @location end |
#success ⇒ Object (readonly) Also known as: success?
Returns the value of attribute success.
5 6 7 |
# File 'lib/simple_geolocation/geoworkers/base.rb', line 5 def success @success end |
Class Method Details
Instance Method Details
#process! ⇒ Object
12 13 14 |
# File 'lib/simple_geolocation/geoworkers/base.rb', line 12 def process! raise NotImplementedError end |