Class: Decidim::Conferences::ConferenceMetadataCell

Inherits:
Decidim::CardMetadataCell
  • Object
show all
Defined in:
app/cells/decidim/conferences/conference_metadata_cell.rb

Instance Method Summary collapse

Instance Method Details

#end_dateObject



16
17
18
# File 'app/cells/decidim/conferences/conference_metadata_cell.rb', line 16

def end_date
  model.end_date.to_time
end

#itemsObject



8
9
10
# File 'app/cells/decidim/conferences/conference_metadata_cell.rb', line 8

def items
  [dates_item].compact
end

#start_dateObject



12
13
14
# File 'app/cells/decidim/conferences/conference_metadata_cell.rb', line 12

def start_date
  model.start_date.to_time
end