Class: MPD::Controller::Stickers

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/mpd/controller/stickers.rb

Defined Under Namespace

Classes: Element, Sticker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ Stickers

Returns a new instance of Stickers.



78
79
80
# File 'lib/mpd/controller/stickers.rb', line 78

def initialize (controller)
	@controller = controller
end

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



76
77
78
# File 'lib/mpd/controller/stickers.rb', line 76

def controller
  @controller
end

Instance Method Details

#[](uri, type = :song) ⇒ Object



82
83
84
# File 'lib/mpd/controller/stickers.rb', line 82

def [] (uri, type = :song)
	Element.new(self, type, uri)
end