Sha256: 11ead3cfe4564c33b62afee5e7ddecc781650efb563491779bff64cb4d7fde45
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
module Linguo # Defines methods to set API key. module Config def self.api_key=(val) @@api_key = val end def self.api_key begin @@api_key rescue NameError raise Linguo::Errors::MissingApiKey, "No API key has been set!" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linguo-0.0.2 | lib/linguo/config.rb |
linguo-0.0.1 | lib/linguo/config.rb |