Sha256: ea6ea7c561b5b71f9169c9a47de9160b2d649c5fe2115744bd592c821535b227

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Logic
        class Query < Ecoportal::API::GraphQL::Logic::BaseQuery
          class GenericItem
            def initialize(*_args, **_kargs)
              raise "Missuse error. You should define a item_class for a class that inherits from Query class."
            end
          end
          class_resolver :item_class, GenericItem

          def response_class
            item_class
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.4.2 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.4.1 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.4.0 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.16 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.15 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.14 lib/ecoportal/api/graphql/logic/query.rb