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.27.1 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.4 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.0 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.3 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.0.rc2 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.27.0.rc1 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.2 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.1 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.0 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.0.rc2 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.26.0.rc1 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.2 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.1 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.0 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.0.rc4 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.0.rc3 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.0.rc2 lib/decidim/api/polling_station_closure_type.rb
decidim-elections-0.25.0.rc1 lib/decidim/api/polling_station_closure_type.rb