2014-02-01 00:26:58 +00:00
|
|
|
class BareAsciicastPagePresenter
|
2014-01-18 13:53:15 +00:00
|
|
|
|
|
|
|
attr_reader :asciicast, :playback_options
|
|
|
|
|
|
|
|
def self.build(asciicast, playback_options)
|
|
|
|
new(asciicast.decorate, PlaybackOptions.new(playback_options))
|
|
|
|
end
|
|
|
|
|
|
|
|
def initialize(asciicast, playback_options)
|
|
|
|
@asciicast = asciicast
|
|
|
|
@playback_options = playback_options
|
|
|
|
end
|
|
|
|
|
|
|
|
def asciicast_id
|
|
|
|
asciicast.id
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|