Class: Shortwave::Facade::Remote
- Inherits:
-
Object
- Object
- Shortwave::Facade::Remote
- 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
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session) ⇒ Remote
constructor
Creates a new facade, given a user session.
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
#session ⇒ Object (readonly)
Returns the value of attribute session.
57 58 59 |
# File 'lib/shortwave/facade/remote.rb', line 57 def session @session end |