Class: Decidim::Conferences::ConferenceType
- Inherits:
-
Api::Types::BaseObject
- Object
- Api::Types::BaseObject
- Decidim::Conferences::ConferenceType
- Defined in:
- lib/decidim/api/conference_type.rb
Overview
This type represents a conference.
Instance Method Summary collapse
- #banner_image ⇒ Object
- #hero_image ⇒ Object
- #registration_types ⇒ Object
- #speakers ⇒ Object
- #url ⇒ Object
Instance Method Details
#banner_image ⇒ Object
51 52 53 |
# File 'lib/decidim/api/conference_type.rb', line 51 def object.attached_uploader(:banner_image).url end |
#hero_image ⇒ Object
47 48 49 |
# File 'lib/decidim/api/conference_type.rb', line 47 def hero_image object.attached_uploader(:hero_image).url end |
#registration_types ⇒ Object
59 60 61 |
# File 'lib/decidim/api/conference_type.rb', line 59 def registration_types object.registration_types.published end |
#speakers ⇒ Object
55 56 57 |
# File 'lib/decidim/api/conference_type.rb', line 55 def speakers object.speakers.published end |
#url ⇒ Object
43 44 45 |
# File 'lib/decidim/api/conference_type.rb', line 43 def url EngineRouter.main_proxy(object).conference_url(object) end |