Skip to content

Instantly share code, notes, and snippets.

@xcobar

xcobar/lab.rb Secret

Created May 10, 2019 11:25
Show Gist options
  • Save xcobar/b3e7d17e557d02c9ddb337e5db3af015 to your computer and use it in GitHub Desktop.
Save xcobar/b3e7d17e557d02c9ddb337e5db3af015 to your computer and use it in GitHub Desktop.
require 'geokit'
module Klasso
class Client
attr_reader :api_key
def initialize(api_key)
@api_key = api_key
end
p Geokit::Geocoders::GoogleGeocoder.api_key = api_key
end
end
#lab.rb:11:in `<class:Client>': undefined local variable or method `api_key' for Klasso::Client:Class (NameError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment