Class: GoogleApi::Shorten::List
- Defined in:
- lib/google_api/shorten/url/list.rb
Instance Method Summary collapse
- #count ⇒ Object
-
#initialize ⇒ List
constructor
A new instance of List.
- #items ⇒ Object
Methods inherited from Url
Constructor Details
#initialize ⇒ List
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
#count ⇒ Object
9 10 11 |
# File 'lib/google_api/shorten/url/list.rb', line 9 def count @data['totalItems'] end |
#items ⇒ Object
13 14 15 |
# File 'lib/google_api/shorten/url/list.rb', line 13 def items @data['items'] end |