Class: Scrobbler::Radio

Inherits:
Base
  • Object
show all
Defined in:
lib/scrobbler/radio.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

add_cache, api_key=, #call, #call_pageable, fetch_http, get, load_from_cache, #populate_data, post_request, #request, request, sanitize, save_to_cache, secret=, validate_response_document

Constructor Details

#initialize(station) ⇒ Radio

Returns a new instance of Radio



6
7
8
# File 'lib/scrobbler/radio.rb', line 6

def initialize(station)
  @station = station
end

Instance Attribute Details

#stationObject (readonly)

Returns the value of attribute station



4
5
6
# File 'lib/scrobbler/radio.rb', line 4

def station
  @station
end

Instance Method Details

#playlistObject

Raises:

  • (NotImplementedError)


15
16
17
18
# File 'lib/scrobbler/radio.rb', line 15

def playlist
    # This function require authentication, but SimpleAuth is not yet 2.0
    raise NotImplementedError
end

#tuneObject

Raises:

  • (NotImplementedError)


10
11
12
13
# File 'lib/scrobbler/radio.rb', line 10

def tune
    # This function require authentication, but SimpleAuth is not yet 2.0
    raise NotImplementedError
end