module Ecoportal module API class GraphQL module Builder class ContractorEntity attr_reader :client def initialize(client) @client = client end def create(**kargs, &block) createMutation.query(**kargs, &block) end def update(**kargs, &block) updateMutation.query(**kargs, &block) end def destroy(**kargs, &block) destroyMutation.query(**kargs, &block) end private def createMutation Ecoportal::API::GraphQL::Mutation::ContractorEntity::Create.new(client) end def updateMutation Ecoportal::API::GraphQL::Mutation::ContractorEntity::Update.new(client) end def destroyMutation Ecoportal::API::GraphQL::Mutation::ContractorEntity::Destroy.new(client) end end end end end end