Class: ODDB::State::Admin::SelectIndicationMethods::Selection

Inherits:
Object
  • Object
show all
Defined in:
src/state/admin/selectindication.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Selection) initialize(user_input, selection, registration)

A new instance of Selection



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

def initialize(user_input, selection, registration)
  @user_input = user_input
  @selection = selection
  @registration = registration
end

Instance Attribute Details

- (Object) registration

Returns the value of attribute registration



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

def registration
  @registration
end

- (Object) selection (readonly)

Returns the value of attribute selection



12
13
14
# File 'src/state/admin/selectindication.rb', line 12

def selection
  @selection
end

- (Object) user_input (readonly)

Returns the value of attribute user_input



12
13
14
# File 'src/state/admin/selectindication.rb', line 12

def user_input
  @user_input
end

Instance Method Details

- (Object) new_indication



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

def new_indication
  pointer = Persistence::Pointer.new([:indication]) 
  Persistence::CreateItem.new(pointer)
end

- (Object) pointer



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

def pointer
  @registration.pointer
end

- (Object) structural_ancestors(app)



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

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