class Echonest::Genre
Attributes
name[RW]
Public Class Methods
list(api_key, options = {})
click to toggle source
# File lib/echonest-ruby-api/genre.rb, line 26 def self.list(api_key, options = {}) Base.get_api_endpoint(api_key, 'genre/list', options) end
new(api_key, name = nil)
click to toggle source
# File lib/echonest-ruby-api/genre.rb, line 9 def initialize(api_key, name = nil) @api_key = api_key @name = name end
search(api_key, options = {})
click to toggle source
# File lib/echonest-ruby-api/genre.rb, line 30 def self.search(api_key, options = {}) Base.get_api_endpoint(api_key, 'genre/search', options) end
Public Instance Methods
artists(options = {})
click to toggle source
# File lib/echonest-ruby-api/genre.rb, line 14 def artists(options = {}) get_response(options.merge(name: @name)) end
profile(options = {})
click to toggle source
# File lib/echonest-ruby-api/genre.rb, line 18 def profile(options = {}) get_response(options.merge(name: @name)) end
similar(options = {})
click to toggle source
# File lib/echonest-ruby-api/genre.rb, line 22 def similar(options = {}) get_response(options.merge(name: @name)) end