Class: Dance::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/dance/client.rb

Direct Known Subclasses

Artists, Genres, Tracks, User

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Client

Returns a new instance of Client.



7
8
9
# File 'lib/dance/client.rb', line 7

def initialize(key)
  self.class.default_params :api_key => key
end

Instance Method Details

#artistsObject



11
12
13
# File 'lib/dance/client.rb', line 11

def artists
  Artists
end

#genresObject



15
16
17
# File 'lib/dance/client.rb', line 15

def genres
  Genres
end

#tracksObject



23
24
25
# File 'lib/dance/client.rb', line 23

def tracks
  Tracks
end

#usersObject



19
20
21
# File 'lib/dance/client.rb', line 19

def users
  Users
end