Class: Bandcamp::Configuration

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

Instance Attribute Summary collapse

Instance Attribute Details

#api_keyObject

Raises:



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

def api_key
  raise ConfigurationError, "You need to set an API key" unless @api_key
  @api_key
end