Class: Soundcloud2000::Controllers::Controller

Inherits:
Object
  • Object
show all
Defined in:
lib/soundcloud2000/controllers/controller.rb

Direct Known Subclasses

PlayerController, TrackController

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view) ⇒ Controller

Returns a new instance of Controller.



8
9
10
11
# File 'lib/soundcloud2000/controllers/controller.rb', line 8

def initialize(view)
  @view = view
  @events = Events.new
end

Instance Attribute Details

#eventsObject (readonly)

Returns the value of attribute events.



6
7
8
# File 'lib/soundcloud2000/controllers/controller.rb', line 6

def events
  @events
end

Instance Method Details

#renderObject



13
14
15
# File 'lib/soundcloud2000/controllers/controller.rb', line 13

def render
  @view.render
end