Class: Rocksky::Resources::Base
- Inherits:
-
Object
- Object
- Rocksky::Resources::Base
- Defined in:
- lib/rocksky/resources/base.rb
Overview
Shared plumbing for resource classes. Each subclass calls #query or #procedure with the lexicon NSID; the HTTP instance does the actual transport work.
Direct Known Subclasses
Actor, Album, Apikey, Artist, Charts, Feed, Graph, Like, Mirror, Player, Playlist, Scrobble, Shout, Song, Spotify, Stats
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
Instance Method Summary collapse
-
#initialize(http) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(http) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/rocksky/resources/base.rb', line 9 def initialize(http) @http = http end |
Instance Attribute Details
#http ⇒ Object (readonly)
Returns the value of attribute http.
7 8 9 |
# File 'lib/rocksky/resources/base.rb', line 7 def http @http end |