Sha256: b363dfc10b03a4168add0c5dd211f1e8181598d22d33547bb050c3124fa87b0d

Contents?: true

Size: 521 Bytes

Versions: 6

Compression:

Stored size: 521 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

6 entries across 6 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.3.13 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.12 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.11 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.10 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.9 lib/ecoportal/api/graphql/logic/query.rb
ecoportal-api-graphql-0.3.8 lib/ecoportal/api/graphql/logic/query.rb