Class: ODDB::State::Admin::AssignDeprivedSequence::DeprivedSequenceFacade

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (DeprivedSequenceFacade) initialize(seq)

A new instance of DeprivedSequenceFacade



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

def initialize(seq)
  @sequence = seq
  self.sequences = seq.registration.sequences.values
end

Instance Attribute Details

- (Object) sequence (readonly)

Returns the value of attribute sequence



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

def sequence
  @sequence
end

- (Object) sequences

Returns the value of attribute sequences



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

def sequences
  @sequences
end

Instance Method Details

- (Object) each(&block)



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

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

- (Boolean) empty?

Returns:

  • (Boolean)


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

def empty?
  @sequences.empty?
end

- (Object) name_base



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

def name_base
  @sequence.name_base
end

- (Object) pointer



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

def pointer
  @sequence.pointer
end

- (Object) structural_ancestors(app)



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

def structural_ancestors(app)
  @sequence.structural_ancestors(app)
end