class Decidim::Initiatives::InitiativeType

This type represents a Initiative.

Public Instance Methods

author() click to toggle source
# File lib/decidim/api/initiative_type.rb, line 42
def author
  object.user_group || object.author
end
initiative_votes_count() click to toggle source
# File lib/decidim/api/initiative_type.rb, line 38
def initiative_votes_count
  object.online_votes_count
end