Skip to content

Instantly share code, notes, and snippets.

@zmalltalker
Created April 19, 2017 07:09
Show Gist options
  • Save zmalltalker/0d27df35617a9046e3d15c4f2badd125 to your computer and use it in GitHub Desktop.
Save zmalltalker/0d27df35617a9046e3d15c4f2badd125 to your computer and use it in GitHub Desktop.
class AppConfiguration
def self.configure(env)
raise "Neeed access token to work" unless env["TOKEN"]
self.access_token=env["TOKEN"]
end
def self.access_token=(token)
@access_token = token
end
def self.access_token
@access_token
end
end
AppConfiguration.configure(ENV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment