Sha256: 7e3052f8123c17a3b350954265a0fd5a5628ed9bd0c3e968bd219dd757fe97a1
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
module GaExampleGem # This is the configuration module that # allows us to setup an api_key # using a pattern close to the Twitter or MtGox gem module Configuration # This is our API key. We aren't really using it # anywhere, but you could imagine using it # with HTTP requests attr_accessor :api_key # This yields a block that can be iterated on # Its useful for being able to set values to the # attr_accessor def configure yield self end # This reset our API key and is called when the # client is initialized def reset self.api_key = nil self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ga_example_gem-0.0.2 | lib/ga_example_gem/configuration.rb |
ga_example_gem-0.0.1 | lib/ga_example_gem/configuration.rb |