Class: Decidim::Initiatives::InitiativeType
- Inherits:
-
Api::Types::BaseObject
- Object
- GraphQL::Schema::Object
- Api::Types::BaseObject
- Decidim::Initiatives::InitiativeType
- Defined in:
- decidim-initiatives/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 'decidim-initiatives/lib/decidim/api/initiative_type.rb', line 42 def object.user_group || object. end |
#initiative_votes_count ⇒ Object
38 39 40 |
# File 'decidim-initiatives/lib/decidim/api/initiative_type.rb', line 38 def initiative_votes_count object.online_votes_count end |