# This is an autogenerated file for dynamic methods in Headmaster # Please rerun bundle exec rake rails_rbi:models[Headmaster] to regenerate. # typed: strong module Headmaster::ActiveRelation_WhereNot sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) } def not(opts, *rest); end end module Headmaster::GeneratedAttributeMethods sig { returns(Integer) } def id; end sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void } def id=(value); end sig { returns(T::Boolean) } def id?; end sig { returns(T.nilable(Integer)) } def school_id; end sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void } def school_id=(value); end sig { returns(T::Boolean) } def school_id?; end sig { returns(Integer) } def wizard_id; end sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void } def wizard_id=(value); end sig { returns(T::Boolean) } def wizard_id?; end end module Headmaster::GeneratedAssociationMethods sig { returns(::School) } def school; end sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) } def build_school(*args, &block); end sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) } def create_school(*args, &block); end sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) } def create_school!(*args, &block); end sig { params(value: ::School).void } def school=(value); end sig { returns(::School) } def reload_school; end sig { returns(::Wizard) } def wizard; end sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) } def build_wizard(*args, &block); end sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) } def create_wizard(*args, &block); end sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) } def create_wizard!(*args, &block); end sig { params(value: ::Wizard).void } def wizard=(value); end sig { returns(::Wizard) } def reload_wizard; end end module Headmaster::CustomFinderMethods sig { params(limit: Integer).returns(T::Array[Headmaster]) } def first_n(limit); end sig { params(limit: Integer).returns(T::Array[Headmaster]) } def last_n(limit); end sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[Headmaster]) } def find_n(*args); end sig { params(id: T.nilable(Integer)).returns(T.nilable(Headmaster)) } def find_by_id(id); end sig { params(id: Integer).returns(Headmaster) } def find_by_id!(id); end end class Headmaster < ApplicationRecord include Headmaster::GeneratedAttributeMethods include Headmaster::GeneratedAssociationMethods extend Headmaster::CustomFinderMethods extend Headmaster::QueryMethodsReturningRelation RelationType = T.type_alias { T.any(Headmaster::ActiveRecord_Relation, Headmaster::ActiveRecord_Associations_CollectionProxy, Headmaster::ActiveRecord_AssociationRelation) } end module Headmaster::QueryMethodsReturningRelation sig { returns(Headmaster::ActiveRecord_Relation) } def all; end sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) } def unscoped(&block); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def reselect(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def order(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def reorder(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def group(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def limit(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def offset(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def joins(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def left_joins(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def left_outer_joins(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def where(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def rewhere(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def preload(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def extract_associated(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def eager_load(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def includes(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def from(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def lock(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def readonly(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def or(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def having(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def create_with(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def distinct(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def references(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def none(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def unscope(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def optimizer_hints(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def merge(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def except(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) } def only(*args); end sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) } def select(&block); end sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_Relation) } def select_columns(*args); end sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) } def extending(*args, &block); end sig do params( of: T.nilable(Integer), start: T.nilable(Integer), finish: T.nilable(Integer), load: T.nilable(T::Boolean), error_on_ignore: T.nilable(T::Boolean), block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_Relation).void) ).returns(ActiveRecord::Batches::BatchEnumerator) end def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end end module Headmaster::QueryMethodsReturningAssociationRelation sig { returns(Headmaster::ActiveRecord_AssociationRelation) } def all; end sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) } def unscoped(&block); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def reselect(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def order(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def reorder(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def group(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def limit(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def offset(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def joins(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def left_joins(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def left_outer_joins(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def where(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def rewhere(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def preload(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def extract_associated(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def eager_load(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def includes(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def from(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def lock(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def readonly(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def or(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def having(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def create_with(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def distinct(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def references(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def none(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def unscope(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def optimizer_hints(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def merge(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def except(*args); end sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) } def only(*args); end sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) } def select(&block); end sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_AssociationRelation) } def select_columns(*args); end sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) } def extending(*args, &block); end sig do params( of: T.nilable(Integer), start: T.nilable(Integer), finish: T.nilable(Integer), load: T.nilable(T::Boolean), error_on_ignore: T.nilable(T::Boolean), block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_AssociationRelation).void) ).returns(ActiveRecord::Batches::BatchEnumerator) end def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end end class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningRelation Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation Elem = type_member {{fixed: Headmaster}} sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def <<(*records); end sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def append(*records); end sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def push(*records); end sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def concat(*records); end end