Class: ODDB::State::Admin::AssignFachinfo::RegistrationFacade

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
src/state/admin/assign_fachinfo.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (RegistrationFacade) initialize(reg)

A new instance of RegistrationFacade



15
16
17
18
# File 'src/state/admin/assign_fachinfo.rb', line 15

def initialize(reg)
  @registration = reg
  @registrations = []
end

Instance Attribute Details

- (Object) registration (readonly)

Returns the value of attribute registration



13
14
15
# File 'src/state/admin/assign_fachinfo.rb', line 13

def registration
  @registration
end

- (Object) registrations

Returns the value of attribute registrations



13
14
15
# File 'src/state/admin/assign_fachinfo.rb', line 13

def registrations
  @registrations
end

Instance Method Details

- (Object) each(&block)



22
23
24
# File 'src/state/admin/assign_fachinfo.rb', line 22

def each(&block)
  @registrations.each(&block)
end

- (Boolean) empty?

Returns:

  • (Boolean)


25
26
27
# File 'src/state/admin/assign_fachinfo.rb', line 25

def empty?
  @registrations.empty?
end

- (Object) name_base



28
29
30
# File 'src/state/admin/assign_fachinfo.rb', line 28

def name_base
  @registration.name_base
end

- (Object) pointer



31
32
33
# File 'src/state/admin/assign_fachinfo.rb', line 31

def pointer
  @registration.pointer
end

- (Object) structural_ancestors(app)



19
20
21
# File 'src/state/admin/assign_fachinfo.rb', line 19

def structural_ancestors(app)
  [@registration]
end