Class: Decidim::Initiatives::InitiativeType
- Inherits:
-
Api::Types::BaseObject
- Object
- Api::Types::BaseObject
- Decidim::Initiatives::InitiativeType
- Defined in:
- lib/decidim/api/initiative_type.rb
Overview
This type represents a Initiative.
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
42 43 44 |
# File 'lib/decidim/api/initiative_type.rb', line 42 def object.user_group || object. end |
#initiative_votes_count ⇒ Object
38 39 40 |
# File 'lib/decidim/api/initiative_type.rb', line 38 def initiative_votes_count object.online_votes_count end |