Class: ODDB::State::Admin::GalenicGroup

Inherits:
Global show all
Defined in:
src/state/admin/root.rb,
src/state/admin/galenicform.rb,
src/state/admin/galenicgroup.rb

Constant Summary

VIEW =
View::Admin::GalenicGroup

Constants inherited from Global

HOME_STATE, ZONE

Constants inherited from Global

DIRECT_EVENT, GLOBAL_MAP, HOME_STATE, LIMITED, PRINT_STATES, READONLY_STATES, RESOLVE_STATES, REVERSE_MAP, VIEW, ZONE_NAVIGATION

Constants included from UmlautSort

FILTER_PAIRS

Instance Method Summary (collapse)

Methods inherited from Global

#zone_navigation

Methods inherited from Global

#_search_drugs, #_search_drugs_state, #_trigger, #add_to_interaction_basket, #allowed?, #atc_chooser, #checkout, #clear_interaction_basket, #creditable?, #direct_request_path, #doctorlist, #download, #export_csv, #extend, #fachinfo, #feedbacks, #help_navigation, #home_navigation, #home_state, #hospitallist, #interaction_basket, #limit_state, #limited?, #logout, #navigation, #notify, #password_reset, #paypal_return, #powerlink, #print, #proceed_download, #proceed_poweruser, #resolve, #resolve_state, #rss, #search, #show, #snapback_event, #sort, #sponsorlink, #suggest_address, #switch, #unique_email, #user_input, #user_navigation, #ywesee_contact, #zone_navigation, #zones

Methods included from LoginMethods

#autologin, #login

Methods included from UmlautSort

#sort_model, #umlaut_filter

Instance Method Details

- (Object) delete



13
14
15
16
17
18
19
20
# File 'src/state/admin/galenicgroup.rb', line 13

def delete
  begin
    @session.app.delete(@model.pointer)
    galenic_groups() # from RootState
  rescue StandardError => e
    State::Exception.new(@session, e)
  end
end

- (Object) update



21
22
23
24
25
26
# File 'src/state/admin/galenicgroup.rb', line 21

def update
  keys = [:route_of_administration].concat @session.lookandfeel.languages
  input = user_input(keys)
  @model = @session.app.update(@model.pointer, input, unique_email)
  self
end