Class: Hallon::Search::Albums

Inherits:
Enumerator show all
Defined in:
lib/hallon/search.rb

Overview

Enumerates through all albums of a search object.

Instance Attribute Summary

Attributes inherited from Enumerator

#pointer

Instance Method Summary collapse

Methods inherited from Enumerator

#[], #each, #empty?, #initialize, item, size, #to_s

Constructor Details

This class inherits a constructor from Hallon::Enumerator

Instance Method Details

#search_albumAlbum?

Returns:



30
31
32
# File 'lib/hallon/search.rb', line 30

item :search_album do |album|
  Album.from(album)
end

#totalInteger

Returns total number of tracks from connected search result.

Returns:

  • (Integer)

    total number of tracks from connected search result.



35
36
37
# File 'lib/hallon/search.rb', line 35

def total
  Spotify.search_total_albums(pointer)
end