Module: GoogleApi::Shorten

Defined in:
lib/google_api/shorten/session.rb,
lib/google_api/shorten/shorten.rb,
lib/google_api/shorten/url/get.rb,
lib/google_api/shorten/url/url.rb,
lib/google_api/shorten/url/list.rb,
lib/google_api/shorten/url/insert.rb

Defined Under Namespace

Classes: Get, Insert, List, Session, Url

Constant Summary collapse

CONFIGURATION =
{}
URLSHORTENER_URI =
'https://www.googleapis.com/urlshortener/v1/url'

Class Method Summary collapse

Class Method Details

.get(url, projection = 'FULL') ⇒ Object



25
26
27
# File 'lib/google_api/shorten/shorten.rb', line 25

def self.get(url, projection = 'FULL')
  Get.new(url, projection)
end

.insert(url) ⇒ Object



17
18
19
# File 'lib/google_api/shorten/shorten.rb', line 17

def self.insert(url)
  Insert.new(url)
end

.listObject



21
22
23
# File 'lib/google_api/shorten/shorten.rb', line 21

def self.list
  List.new
end