Sha256: a68dd1322142e85eb139eb601113b7d955a8068ea0944f258f62b7841bd6fcf8
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
module Bitly module Config # bitly client options OPTION_KEYS = [ :login, :api_key, :api_version, :timeout ] attr_accessor(*OPTION_KEYS) alias_method :access_token, :login alias_method :access_token=, :login= def configure yield self self end def options options = {} OPTION_KEYS.each{|key| options[key] = send(key)} options end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bitly-2.0.0.beta.1 | lib/bitly/config.rb |
bitly-1.1.2 | lib/bitly/config.rb |