Class: Decidim::Meetings::MeetingType

Inherits:
Api::Types::BaseObject show all
Defined in:
decidim-meetings/lib/decidim/api/meeting_type.rb

Instance Method Summary collapse

Instance Method Details

#agendaObject


26
27
28
# File 'decidim-meetings/lib/decidim/api/meeting_type.rb', line 26

def agenda
  object.agenda if object.agenda&.visible?
end

#audio_urlObject


43
44
45
# File 'decidim-meetings/lib/decidim/api/meeting_type.rb', line 43

def audio_url
  object.audio_url if object.closing_visible?
end

#closing_reportObject


35
36
37
# File 'decidim-meetings/lib/decidim/api/meeting_type.rb', line 35

def closing_report
  object.closing_report if object.closing_visible?
end

#coordinatesObject


70
71
72
# File 'decidim-meetings/lib/decidim/api/meeting_type.rb', line 70

def coordinates
  [object.latitude, object.longitude]
end

#registration_formObject


62
63
64
# File 'decidim-meetings/lib/decidim/api/meeting_type.rb', line 62

def registration_form
  object.questionnaire if object.registration_form_enabled?
end

#video_urlObject


39
40
41
# File 'decidim-meetings/lib/decidim/api/meeting_type.rb', line 39

def video_url
  object.video_url if object.closing_visible?
end