Sha256: 7756812dd6da35dac63e782478f972f1f3ba47220630ffcd2dddc124e54b66d0
Contents?: true
Size: 793 Bytes
Versions: 9
Compression:
Stored size: 793 Bytes
Contents
# frozen_string_literal: true module DocomoNlu module Management class Scenario < AIMLBase self.element_name = "scenarios" self.prefix = "/management/v2.6/projects/:project_id/bots/:bot_id/" @permitted_root_param = [:userScenarios, :templateScenarios] @permitted_user_scenarios_param = [:scenarioId, :description, :compileFlag] def save @attributes.select! {|a| a =~ /(userScenarios|templateScenarios)/ } userScenarios.each do |us| us.attributes.select! {|a| a =~ /(scenarioId|description|compileFlag)/ } end super end def destroy(scenario_id) self.id = scenario_id super() end class UserScenarios < Base; end class TemplateScenarios < Base; end end end end
Version data entries
9 entries across 9 versions & 1 rubygems