Class: Hallon::Search::Artists

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_artistArtist?

Returns:


45
46
47
# File 'lib/hallon/search.rb', line 45

item :search_artist do |artist|
  Artist.from(artist)
end

#totalInteger

Returns total tracks available from connected search result.

Returns:

  • (Integer)

    total tracks available from connected search result.


50
51
52
# File 'lib/hallon/search.rb', line 50

def total
  Spotify.search_total_artists(pointer)
end