Class: Decidim::Meetings::MeetingType
- Inherits:
-
Api::Types::BaseObject
- Object
- Api::Types::BaseObject
- Decidim::Meetings::MeetingType
- Defined in:
- lib/decidim/api/meeting_type.rb
Instance Method Summary collapse
- #agenda ⇒ Object
- #audio_url ⇒ Object
- #closing_report ⇒ Object
- #coordinates ⇒ Object
- #registration_form ⇒ Object
- #video_url ⇒ Object
Instance Method Details
#agenda ⇒ Object
26 27 28 |
# File 'lib/decidim/api/meeting_type.rb', line 26 def agenda object.agenda if object.agenda&.visible? end |
#audio_url ⇒ Object
44 45 46 |
# File 'lib/decidim/api/meeting_type.rb', line 44 def audio_url object.audio_url if object.closing_visible? end |
#closing_report ⇒ Object
36 37 38 |
# File 'lib/decidim/api/meeting_type.rb', line 36 def closing_report object.closing_report if object.closing_visible? end |
#coordinates ⇒ Object
74 75 76 |
# File 'lib/decidim/api/meeting_type.rb', line 74 def coordinates [object.latitude, object.longitude] end |
#registration_form ⇒ Object
66 67 68 |
# File 'lib/decidim/api/meeting_type.rb', line 66 def registration_form object.questionnaire if object.registration_form_enabled? end |
#video_url ⇒ Object
40 41 42 |
# File 'lib/decidim/api/meeting_type.rb', line 40 def video_url object.video_url if object.closing_visible? end |