Sha256: fdfb79207d0c9d2728c5feefb1c254b68bb20388a70fb2db42fbd46de668022f

Contents?: true

Size: 868 Bytes

Versions: 21

Compression:

Stored size: 868 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Payload
        module LocationStructure
          class ApplyCommands < Ecoportal::API::GraphQL::Base::Model
            passthrough :clientMutationId
            embeds_one :structure, klass: Ecoportal::API::GraphQL::Model::LocationStructure
            embeds_one :errors, klass: Ecoportal::API::GraphQL::Error::ValidationErrors, nullable: true
            embeds_one :error, klass: Ecoportal::API::GraphQL::Error::LocationsError, nullable: true
            embeds_many :results, read_only: true, klass: Ecoportal::API::GraphQL::Payload::LocationStructure::CommandExecutionResult

            def success?
              !errors?
            end

            def errors?
              errors && !errors.empty?
            end
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.4.2 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.4.1 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.4.0 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.16 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.15 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.14 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.13 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.12 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.11 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.10 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.9 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.8 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.7 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.6 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.5 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.3 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.3.1 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.2.3 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
ecoportal-api-graphql-0.2.2 lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb