Skip to content

Add configurator #1

Description

@garethrees

Came across rHAPI which has a lovely configuration block. Turn also does this.

Rather than

a = Echonest::Artist.new('Weezer', 'YOUR-API-KEY')

You could do

Echonest.config do |c|
  c.api_key = 'YOUR_API_KEY'
end

a = Echonest::Artist.new('Weezer')

Haven't looked in to this much but something I want to learn so happy to work on it together.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions