Class: ShortURL::Services::Vurl

Inherits:
ShortURL::Service show all
Defined in:
lib/shorturl/services/vurl.rb

Instance Attribute Summary

Attributes inherited from ShortURL::Service

#action, #block, #code, #field, #method, #port, #response_block, #ssl

Instance Method Summary collapse

Methods inherited from ShortURL::Service

#call, #on_body, #on_response

Constructor Details

#initializeVurl

Returns a new instance of Vurl.



7
8
9
10
11
12
13
# File 'lib/shorturl/services/vurl.rb', line 7

def initialize
  super("vurl.me")

  @method = :get
  @action = "/shorten"
  @field  = "url"
end