Sha256: 1734d67c772818db6f7eae1e74f019019224fe15380ca613cd553ee54f8edd64

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Base
        class LocationNode < Ecoportal::API::GraphQL::Base::Model
          passkey :id
          passthrough :name
          passthrough :weight
          embeds_one :parent, klass: Base::LocationNode, nullable: true
          passboolean :archived
          passthrough :archivedToken
          embeds_many :classifications, klass: Base::LocationClassificationType          

          def parentId
            parent&.id
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.3.14 lib/ecoportal/api/graphql/base/location_node.rb
ecoportal-api-graphql-0.3.13 lib/ecoportal/api/graphql/base/location_node.rb
ecoportal-api-graphql-0.3.12 lib/ecoportal/api/graphql/base/location_node.rb
ecoportal-api-graphql-0.3.11 lib/ecoportal/api/graphql/base/location_node.rb
ecoportal-api-graphql-0.3.10 lib/ecoportal/api/graphql/base/location_node.rb
ecoportal-api-graphql-0.3.9 lib/ecoportal/api/graphql/base/location_node.rb
ecoportal-api-graphql-0.3.8 lib/ecoportal/api/graphql/base/location_node.rb