Sha256: 887a55e98a05e78314de6f805c2fa3a5496a2e2e22043e489e02e7e895d69984
Contents?: true
Size: 920 Bytes
Versions: 32
Compression:
Stored size: 920 Bytes
Contents
module ThinkFeelDoEngine # Simplifies the logic of the media/audio access event views. class MediaAccessEventPresenter attr_reader :event, :start_date def initialize(event:, start_date:) @event = event @start_date = start_date end def completed end_time end def available_on(group) relased_on(group) .to_s(:user_date) end def duration_of_session end_time - created_at end def formatted_end_time end_time.to_s(:standard) end def formatted_start_time created_at.to_s(:standard) end def sortable(group) relased_on(group).to_time.to_i end def title event.slide_title end private def created_at event.created_at end def relased_on(group) start_date + (event.task_release_day(group) - 1) end def end_time event.end_time end end end
Version data entries
32 entries across 32 versions & 1 rubygems