Class: Uncoil
- Inherits:
-
Object
- Object
- Uncoil
- Defined in:
- lib/uncoil.rb,
lib/uncoil/version.rb,
lib/uncoil/response.rb
Defined Under Namespace
Classes: Response
Constant Summary collapse
- VERSION =
"1.2.0"
Class Method Summary collapse
Instance Method Summary collapse
- #expand(urls) ⇒ Object
-
#initialize(options = {}) ⇒ Uncoil
constructor
A new instance of Uncoil.
Constructor Details
#initialize(options = {}) ⇒ Uncoil
Returns a new instance of Uncoil.
8 9 10 11 12 13 14 |
# File 'lib/uncoil.rb', line 8 def initialize( = {}) Bitly.use_api_version_3 if .has_key?(:bitlyuser) && .has_key?(:bitlykey) @bitly_instance = Bitly.new("#{[:bitlyuser]}", "#{[:bitlykey]}") end end |
Class Method Details
Instance Method Details
#expand(urls) ⇒ Object
20 21 22 |
# File 'lib/uncoil.rb', line 20 def (urls) format_output((urls)) end |