Class: UrlExpander::Expanders::Owly

Inherits:
Basic
  • Object
show all
Defined in:
lib/url_expander/expanders/basic/owly.rb

Overview

Expand ow.ly URLS Usage: UrlExpander::Client.expand(“ow.ly/5EVkL”)

Defined Under Namespace

Classes: Request

Constant Summary collapse

PATTERN =
%r'(http://ow\.ly(/[\w/]+))'

Instance Attribute Summary collapse

Attributes inherited from Basic

#long_url, #parttern

Instance Method Summary collapse

Constructor Details

#initialize(short_url = "", options = {}) ⇒ Owly

Returns a new instance of Owly.



12
13
14
15
# File 'lib/url_expander/expanders/basic/owly.rb', line 12

def initialize(short_url="", options={})
  @parent_klass = self
  super(short_url, options)
end

Instance Attribute Details

#parent_klassObject (readonly)

Returns the value of attribute parent_klass.



10
11
12
# File 'lib/url_expander/expanders/basic/owly.rb', line 10

def parent_klass
  @parent_klass
end