Class: Shortwave::Facade::Remote

Inherits:
Object
  • Object
show all
Defined in:
lib/shortwave/facade/remote.rb

Overview

Base class for each remote facade.

Remote methods may raise a RemoteError if an http error response is returned from the Last.fm service.

Direct Known Subclasses

Album, Artist, Auth, Event, Geo, Group, Library, Playlist, Radio, Tag, Tasteometer, Track, User, Venue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ Remote

Creates a new facade, given a user session



60
61
62
# File 'lib/shortwave/facade/remote.rb', line 60

def initialize(session)
  @session = session
end

Instance Attribute Details

#sessionObject (readonly)

Returns the value of attribute session.



57
58
59
# File 'lib/shortwave/facade/remote.rb', line 57

def session
  @session
end