Module: EdmTrain

Defined in:
lib/edm_train.rb,
lib/edm_train/venue.rb,
lib/edm_train/artist.rb,
lib/edm_train/client.rb,
lib/edm_train/events.rb,
lib/edm_train/locations.rb

Overview

An API Client for EdmTrain.com

Defined Under Namespace

Classes: APIError, Artist, Client, Event, Events, Location, Locations, MissingKeyError, Venue

Class Method Summary collapse

Class Method Details

.api_keyString

EdmTrain API key getter

Returns:

  • (String)

    the API key



16
17
18
# File 'lib/edm_train/client.rb', line 16

def self.api_key
  @api_key
end

.api_key=(key) ⇒ String

EdmTrain API key setter

Parameters:

  • key (String)

    the API key

Returns:

  • (String)

    the API key



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

def self.api_key=(key)
  @api_key = key
end

.clientEdmTrain::Client

Helper method to return the client.

Returns:



10
11
12
# File 'lib/edm_train/client.rb', line 10

def self.client
  @client ||= Client.new
end