Method: KlaviyoAPI::Timeframe#valid?
- Defined in:
- lib/klaviyo-api-sdk/models/timeframe.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
101 102 103 104 105 106 |
# File 'lib/klaviyo-api-sdk/models/timeframe.rb', line 101 def valid? return false if @key.nil? key_validator = EnumAttributeValidator.new('String', ["last_12_months", "last_30_days", "last_365_days", "last_3_months", "last_7_days", "last_90_days", "last_month", "last_week", "last_year", "this_month", "this_week", "this_year", "today", "yesterday"]) return false unless key_validator.valid?(@key) true end |