class GeoStalker::Locator

Public Class Methods

new(api_key) click to toggle source
# File lib/geo_stalker/locator.rb, line 12
def initialize(api_key)
  @api_key = api_key
end

Private Instance Methods

locator() click to toggle source
# File lib/geo_stalker/locator.rb, line 18
def locator
  @locator ||= begin
    case RUBY_PLATFORM
    when /darwin/
      GeoStalker::Locator::Darwin.new(@api_key)
    when /linux/
      GeoStalker::Locator::Linux.new(@api_key)
    end
  end
end