Class: UrlExpander::Expanders::Ur1ca
- Defined in:
- lib/url_expander/expanders/basic/ur1ca.rb
Overview
Expand ur1.ca URLS Usage: UrlExpander::Client.expand(“ur1.ca/4qcly”)
Defined Under Namespace
Classes: Request
Constant Summary collapse
- PATTERN =
%r'(http://ur1\.ca(/[\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 = {}) ⇒ Ur1ca
constructor
A new instance of Ur1ca.
Constructor Details
#initialize(short_url = "", options = {}) ⇒ Ur1ca
Returns a new instance of Ur1ca.
12 13 14 15 |
# File 'lib/url_expander/expanders/basic/ur1ca.rb', line 12 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.
10 11 12 |
# File 'lib/url_expander/expanders/basic/ur1ca.rb', line 10 def parent_klass @parent_klass end |