Class: UrlExpander::Expanders::Tinyurl
- Defined in:
- lib/url_expander/expanders/basic/tinyurl.rb
Overview
Expand Tinyurl URLS Usage: UrlExpander::Client.expand(“tinyurl.com/66sekq5”)
Defined Under Namespace
Classes: Request
Constant Summary collapse
- PATTERN =
%r'(http://tinyurl\.com(/[\w/]+))'
Instance Attribute Summary collapse
-
#parent_klass ⇒ Object
readonly
Returns the value of attribute parent_klass.
Attributes inherited from Basic
Instance Method Summary collapse
-
#initialize(short_url = "", options = {}) ⇒ Tinyurl
constructor
A new instance of Tinyurl.
Constructor Details
#initialize(short_url = "", options = {}) ⇒ Tinyurl
Returns a new instance of Tinyurl.
14 15 16 17 |
# File 'lib/url_expander/expanders/basic/tinyurl.rb', line 14 def initialize(short_url="", ={}) @parent_klass = self super(short_url, ) end |
Instance Attribute Details
#parent_klass ⇒ Object (readonly)
Returns the value of attribute parent_klass.
12 13 14 |
# File 'lib/url_expander/expanders/basic/tinyurl.rb', line 12 def parent_klass @parent_klass end |