Class: Hallon::Search::Albums
- Inherits:
-
Enumerator
- Object
- Enumerator
- Hallon::Search::Albums
- Defined in:
- lib/hallon/search.rb
Overview
Enumerates through all albums of a search object.
Instance Attribute Summary
Attributes inherited from Enumerator
Instance Method Summary collapse
- #search_album ⇒ Album?
-
#total ⇒ Integer
Total number of tracks from connected search result.
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_album ⇒ Album?
30 31 32 |
# File 'lib/hallon/search.rb', line 30 item :search_album do |album| Album.from(album) end |
#total ⇒ Integer
Returns 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 |