lib/smooch-api/models/webhook.rb in smooch-api-1.12.0 vs lib/smooch-api/models/webhook.rb in smooch-api-2.0.0

- old
+ new

@@ -1,11 +1,11 @@ =begin #Smooch #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io). -OpenAPI spec version: 1.12 +OpenAPI spec version: 2 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -25,30 +25,9 @@ attr_accessor :triggers # Secret which will be transmitted with each webhook invocation and can be used to verify the authenticity of the caller. attr_accessor :secret - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'_id' => :'_id',