lib/ff/ruby/server/generated/lib/openapi_client/models/serving_rule.rb in ff-ruby-server-sdk-1.2.1 vs lib/ff/ruby/server/generated/lib/openapi_client/models/serving_rule.rb in ff-ruby-server-sdk-1.3.1

- old
+ new

@@ -12,15 +12,19 @@ require 'date' require 'time' module OpenapiClient + # The rule used to determine what variation to serve to a target class ServingRule + # The unique identifier for this rule attr_accessor :rule_id + # The rules priority relative to other rules. The rules are evaluated in order with 1 being the highest attr_accessor :priority + # A list of clauses to use in the rule attr_accessor :clauses attr_accessor :serve # Attribute mapping from ruby-style variable name to JSON key. @@ -90,14 +94,10 @@ # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @rule_id.nil? - invalid_properties.push('invalid value for "rule_id", rule_id cannot be nil.') - end - if @priority.nil? invalid_properties.push('invalid value for "priority", priority cannot be nil.') end if @clauses.nil? @@ -112,10 +112,9 @@ end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @rule_id.nil? return false if @priority.nil? return false if @clauses.nil? return false if @serve.nil? true end