Sha256: 9fbef790ae4af8f7a12695116abf6dbb413afc34ecc549102380b0c49b5afec0

Contents?: true

Size: 1.11 KB

Versions: 38

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    # This type represents a Polling Station closure for an election.
    class PollingStationClosureType < Decidim::Api::Types::BaseObject
      description "A polling station election closure"

      field :id, GraphQL::Types::ID, "The internal ID of this result", null: false
      field :created_at, Decidim::Core::DateTimeType, "When this result was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, "When this result was updated", null: true
      field :election, Decidim::Elections::ElectionType, "The election for this closure", null: false
      field :polling_officer_notes, GraphQL::Types::String, "The polling officer notes for this closure", null: false
      field :results, [Decidim::Elections::ElectionResultType, { null: true }], "The results for this closure", null: false
      field :polling_station, Decidim::Votings::PollingStationType, "The polling station for this closure", null: true
      field :signed, GraphQL::Types::Boolean, "Whether this closure is signed or not", method: :signed?, null: true
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.9 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.28.3 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.8 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.28.2 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.7 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.28.1 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.6 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.10 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.9 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.28.0 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.5 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.28.0.rc5 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.28.0.rc4 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.8 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.4 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.3 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.7 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.5 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.2 lib/decidim/api/polling_station_closure_type.rb