Class: Playa::ProgressView

Inherits:
Object
  • Object
show all
Includes:
Helpers, Vedeu
Defined in:
lib/playa/views/progress_view.rb

Instance Method Summary collapse

Methods included from Helpers

#duration, #remaining

Constructor Details

#initialize(player) ⇒ ProgressView

Returns a new instance of ProgressView.



6
7
8
# File 'lib/playa/views/progress_view.rb', line 6

def initialize(player)
  @player = player
end

Instance Method Details

#showObject



10
11
12
13
14
15
16
17
18
# File 'lib/playa/views/progress_view.rb', line 10

def show
  if player.track
    track_loaded

  else
    no_track_loaded

  end
end