Class: Hallon::Search::Tracks

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

Overview

Enumerates through all tracks 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_trackTrack?

Returns:


15
16
17
# File 'lib/hallon/search.rb', line 15

item :search_track do |track|
  Track.from(track)
end

#totalInteger

Returns total number of tracks from connected search result.

Returns:

  • (Integer)

    total number of tracks from connected search result.


20
21
22
# File 'lib/hallon/search.rb', line 20

def total
  Spotify.search_total_tracks(pointer)
end