Class: Decidim::Meetings::MeetingType

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

Instance Method Summary collapse

Instance Method Details

#agendaObject



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

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

#audio_urlObject



44
45
46
# File 'lib/decidim/api/meeting_type.rb', line 44

def audio_url
  object.audio_url if object.closing_visible?
end

#closing_reportObject



36
37
38
# File 'lib/decidim/api/meeting_type.rb', line 36

def closing_report
  object.closing_report if object.closing_visible?
end

#coordinatesObject



74
75
76
# File 'lib/decidim/api/meeting_type.rb', line 74

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

#registration_formObject



66
67
68
# File 'lib/decidim/api/meeting_type.rb', line 66

def registration_form
  object.questionnaire if object.registration_form_enabled?
end

#video_urlObject



40
41
42
# File 'lib/decidim/api/meeting_type.rb', line 40

def video_url
  object.video_url if object.closing_visible?
end