Class: BandsInTownApiClient::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bands_in_town_api_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(artist_id, client_id) ⇒ Client

Returns a new instance of Client.



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

def initialize( artist_id, client_id )
	@artist_id = artist_id
	@client_id = client_id
end

Instance Method Details

#events(format = :json) ⇒ Object



13
14
15
16
# File 'lib/bands_in_town_api_client.rb', line 13

def events(format=:json)
	request = Request.new( :events, @artist_id, @client_id, format)
	request.response
end