Class: DocomoNlu::Management::V26::Scenario

Inherits:
AIMLBase
  • Object
show all
Defined in:
lib/docomo-nlu/management/V26/scenario.rb

Defined Under Namespace

Classes: TemplateScenarios, UserScenarios

Instance Method Summary collapse

Instance Method Details

#destroy(scenario_id) ⇒ Object



20
21
22
23
# File 'lib/docomo-nlu/management/V26/scenario.rb', line 20

def destroy(scenario_id)
  self.id = scenario_id
  super()
end

#saveObject



12
13
14
15
16
17
18
# File 'lib/docomo-nlu/management/V26/scenario.rb', line 12

def save
  @attributes.select! {|a| a =~ /(userScenarios|templateScenarios)/ }
  userScenarios.each do |us|
    us.attributes.select! {|a| a =~ /(scenarioId|description|compileFlag)/ }
  end
  super
end