Module: Meibo::Builder::AcademicSessionBuilder
- Extended by:
- BaseBuilder
- Defined in:
- lib/meibo/builder/academic_session_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from BaseBuilder
Class Method Details
.builder_attribute_names ⇒ Object
10 11 12 |
# File 'lib/meibo/builder/academic_session_builder.rb', line 10 def self.builder_attribute_names %i[builder parent] end |
Instance Method Details
#initialize(builder:, sourced_id: SecureRandom.uuid, parent: nil, **kw) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/meibo/builder/academic_session_builder.rb', line 14 def initialize(builder:, sourced_id: SecureRandom.uuid, parent: nil, **kw) super( sourced_id: sourced_id, parent_sourced_id: parent&.sourced_id, **kw ) @builder = builder @parent = parent builder.academic_sessions << self end |