Sha256: 405fd253cbb711ea992a1a8ef9111d7bcbab29bf3a560be2457865d88833e5c2

Contents?: true

Size: 629 Bytes

Versions: 6

Compression:

Stored size: 629 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Input
        module LocationStructure
          class CommandInterface < Ecoportal::API::GraphQL::Base::Model
            passkey :id
            passthrough :state

            def initialize(*args, **kargs, &block)
              self.id = self.class.new_uuid
              super
            end

            def set_values(**kargs)
              kargs.each do |key, value|
                send(key, value) if respond_to?(key, true)
              end
              self
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
ecoportal-api-graphql-0.4.2 lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
ecoportal-api-graphql-0.4.1 lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
ecoportal-api-graphql-0.4.0 lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
ecoportal-api-graphql-0.3.16 lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
ecoportal-api-graphql-0.3.15 lib/ecoportal/api/graphql/input/location_structure/command_interface.rb