Class: Hypem::TrackFavoritesRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/hypem/track_favorites_request.rb

Class Method Summary collapse

Methods inherited from Request

get_resource

Class Method Details

.get_data(path) ⇒ Object

Extract the response in a user names enumerator



8
9
10
11
# File 'lib/hypem/track_favorites_request.rb', line 8

def self.get_data(path)
  response = get(path)
  return response.body.scan(/<span>(\w*)<\/span>/).flatten
end