Class: GoogleApi::Shorten::List

Inherits:
Url
  • Object
show all
Defined in:
lib/google_api/shorten/url/list.rb

Instance Method Summary collapse

Methods inherited from Url

#_session

Constructor Details

#initializeList

Returns a new instance of List.



5
6
7
# File 'lib/google_api/shorten/url/list.rb', line 5

def initialize
  @data = get
end

Instance Method Details

#countObject



9
10
11
# File 'lib/google_api/shorten/url/list.rb', line 9

def count
  @data['totalItems']
end

#itemsObject



13
14
15
# File 'lib/google_api/shorten/url/list.rb', line 13

def items
  @data['items']
end