Class: UrlExpander::Expanders::Isgd
- Defined in:
- lib/url_expander/expanders/api/isgd.rb
Overview
Expand Isgd URLS Usage: UrlExpander::Client.expand(“is.gd/wsJRhR”)
Defined Under Namespace
Classes: Request
Constant Summary collapse
- PATTERN =
NOTICE: We ignored the / before the key is.gd/wsJRhR => ‘wsJRhR’ without /
%r'(http://is\.gd/([\w/]+))'
Instance Attribute Summary collapse
-
#parent_klass ⇒ Object
readonly
Returns the value of attribute parent_klass.
Attributes inherited from API
#long_url, #parttern, #shortner_key
Instance Method Summary collapse
-
#initialize(short_url, options = {}) ⇒ Isgd
constructor
A new instance of Isgd.
Constructor Details
#initialize(short_url, options = {}) ⇒ Isgd
Returns a new instance of Isgd.
16 17 18 19 20 |
# File 'lib/url_expander/expanders/api/isgd.rb', line 16 def initialize(short_url, ={}) @parent_klass = self super(short_url,) fetch_url end |
Instance Attribute Details
#parent_klass ⇒ Object (readonly)
Returns the value of attribute parent_klass.
14 15 16 |
# File 'lib/url_expander/expanders/api/isgd.rb', line 14 def parent_klass @parent_klass end |