Sha256: e8256a73d97f843461fd2eb6129cf7ffc60378cb93e7da358aeac3e1a2c86fe0
Contents?: true
Size: 797 Bytes
Versions: 6
Compression:
Stored size: 797 Bytes
Contents
# frozen_string_literal: true module DocomoNlu module Management::V26 class Scenario < AIMLBase self.element_name = "scenarios" self.prefix = "/management/v2.6/projects/:project_id/bots/:bot_id/" @permitted_root_param = [:userScenarios, :templateScenarios] @permitted_userScenarios_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
6 entries across 6 versions & 1 rubygems