class Decidim::EnhancedTextwork::ParagraphType
Public Instance Methods
coordinates()
click to toggle source
# File lib/decidim/api/paragraph_type.rb, line 26 def coordinates [object.latitude, object.longitude] end
meeting()
click to toggle source
# File lib/decidim/api/paragraph_type.rb, line 44 def meeting object.authors.first if object.official_meeting? end
vote_count()
click to toggle source
# File lib/decidim/api/paragraph_type.rb, line 50 def vote_count current_component = object.component object.paragraph_votes_count unless current_component.current_settings.votes_hidden? end