Sha256: dc8de2a7e0052955d655ca64e9999d70fadb196ad2e538cf1106c89de27c3838
Contents?: true
Size: 794 Bytes
Versions: 16
Compression:
Stored size: 794 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module Meibo class Builder module CourseBuilder extend BaseBuilder def self.builder_attribute_names [:builder, :school_year, :organization] end def initialize(builder:, sourced_id: SecureRandom.uuid, school_year: nil, organization:, **kw) super( sourced_id: sourced_id, school_year_sourced_id: school_year&.sourced_id, org_sourced_id: organization.sourced_id, **kw ) @builder = builder @school_year = school_year @organization = organization builder.courses << self end def build_classroom(**kw) builder.build_classroom(course: self, school: organization, **kw) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems