Class: KlaviyoAPI::ProfilePropertyDateTrigger
- Inherits:
-
Object
- Object
- KlaviyoAPI::ProfilePropertyDateTrigger
- Defined in:
- lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#date_field_type ⇒ Object
Returns the value of attribute date_field_type.
-
#date_profile_property ⇒ Object
Returns the value of attribute date_profile_property.
-
#internal_metric_id ⇒ Object
Returns the value of attribute internal_metric_id.
-
#recurrence_frequency ⇒ Object
aka RepeatTypes in app and RepeatType in fender.
-
#timedelta_unit_before_date ⇒ Object
See FlowDateTrigger.UNIT_CHOICES in app and CountdownUnit in fender.
-
#timedelta_value_before_date ⇒ Object
Returns the value of attribute timedelta_value_before_date.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
-
#trigger_days ⇒ Object
Returns the value of attribute trigger_days.
-
#trigger_time ⇒ Object
Returns the value of attribute trigger_time.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ProfilePropertyDateTrigger
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ ProfilePropertyDateTrigger
Initializes the object
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 109 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `KlaviyoAPI::ProfilePropertyDateTrigger` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `KlaviyoAPI::ProfilePropertyDateTrigger`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'type') self.type = attributes[:'type'] end if attributes.key?(:'date_field_type') self.date_field_type = attributes[:'date_field_type'] end if attributes.key?(:'date_profile_property') self.date_profile_property = attributes[:'date_profile_property'] end if attributes.key?(:'timedelta_unit_before_date') self.timedelta_unit_before_date = attributes[:'timedelta_unit_before_date'] else self.timedelta_unit_before_date = 'weeks' end if attributes.key?(:'timedelta_value_before_date') self.timedelta_value_before_date = attributes[:'timedelta_value_before_date'] end if attributes.key?(:'recurrence_frequency') self.recurrence_frequency = attributes[:'recurrence_frequency'] else self.recurrence_frequency = 'monthly' end if attributes.key?(:'timezone') self.timezone = attributes[:'timezone'] else self.timezone = 'profile' end if attributes.key?(:'trigger_time') self.trigger_time = attributes[:'trigger_time'] end if attributes.key?(:'trigger_days') if (value = attributes[:'trigger_days']).is_a?(Array) self.trigger_days = value end end if attributes.key?(:'internal_metric_id') self.internal_metric_id = attributes[:'internal_metric_id'] end end |
Instance Attribute Details
#date_field_type ⇒ Object
Returns the value of attribute date_field_type.
20 21 22 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 20 def date_field_type @date_field_type end |
#date_profile_property ⇒ Object
Returns the value of attribute date_profile_property.
22 23 24 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 22 def date_profile_property @date_profile_property end |
#internal_metric_id ⇒ Object
Returns the value of attribute internal_metric_id.
38 39 40 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 38 def internal_metric_id @internal_metric_id end |
#recurrence_frequency ⇒ Object
aka RepeatTypes in app and RepeatType in fender.
30 31 32 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 30 def recurrence_frequency @recurrence_frequency end |
#timedelta_unit_before_date ⇒ Object
See FlowDateTrigger.UNIT_CHOICES in app and CountdownUnit in fender.
25 26 27 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 25 def timedelta_unit_before_date @timedelta_unit_before_date end |
#timedelta_value_before_date ⇒ Object
Returns the value of attribute timedelta_value_before_date.
27 28 29 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 27 def timedelta_value_before_date @timedelta_value_before_date end |
#timezone ⇒ Object
Returns the value of attribute timezone.
32 33 34 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 32 def timezone @timezone end |
#trigger_days ⇒ Object
Returns the value of attribute trigger_days.
36 37 38 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 36 def trigger_days @trigger_days end |
#trigger_time ⇒ Object
Returns the value of attribute trigger_time.
34 35 36 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 34 def trigger_time @trigger_time end |
#type ⇒ Object
Returns the value of attribute type.
18 19 20 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 18 def type @type end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
79 80 81 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 79 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 63 def self.attribute_map { :'type' => :'type', :'date_field_type' => :'date_field_type', :'date_profile_property' => :'date_profile_property', :'timedelta_unit_before_date' => :'timedelta_unit_before_date', :'timedelta_value_before_date' => :'timedelta_value_before_date', :'recurrence_frequency' => :'recurrence_frequency', :'timezone' => :'timezone', :'trigger_time' => :'trigger_time', :'trigger_days' => :'trigger_days', :'internal_metric_id' => :'internal_metric_id' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
277 278 279 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 277 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
100 101 102 103 104 105 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 100 def self.openapi_nullable Set.new([ :'trigger_days', :'internal_metric_id' ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 84 def self.openapi_types { :'type' => :'DateEnum', :'date_field_type' => :'ProfilePropertyEnum', :'date_profile_property' => :'String', :'timedelta_unit_before_date' => :'String', :'timedelta_value_before_date' => :'Integer', :'recurrence_frequency' => :'String', :'timezone' => :'String', :'trigger_time' => :'String', :'trigger_days' => :'Array<String>', :'internal_metric_id' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 247 def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && date_field_type == o.date_field_type && date_profile_property == o.date_profile_property && timedelta_unit_before_date == o.timedelta_unit_before_date && timedelta_value_before_date == o.timedelta_value_before_date && recurrence_frequency == o.recurrence_frequency && timezone == o.timezone && trigger_time == o.trigger_time && trigger_days == o.trigger_days && internal_metric_id == o.internal_metric_id end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 308 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = KlaviyoAPI.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
379 380 381 382 383 384 385 386 387 388 389 390 391 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 379 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 284 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
264 265 266 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 264 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
270 271 272 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 270 def hash [type, date_field_type, date_profile_property, timedelta_unit_before_date, timedelta_value_before_date, recurrence_frequency, timezone, trigger_time, trigger_days, internal_metric_id].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 173 def list_invalid_properties invalid_properties = Array.new if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end if @date_field_type.nil? invalid_properties.push('invalid value for "date_field_type", date_field_type cannot be nil.') end if @date_profile_property.nil? invalid_properties.push('invalid value for "date_profile_property", date_profile_property cannot be nil.') end if @timedelta_value_before_date.nil? invalid_properties.push('invalid value for "timedelta_value_before_date", timedelta_value_before_date cannot be nil.') end if @trigger_time.nil? invalid_properties.push('invalid value for "trigger_time", trigger_time cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
355 356 357 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 355 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 361 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
349 350 351 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 349 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/klaviyo-api-sdk/models/profile_property_date_trigger.rb', line 200 def valid? return false if @type.nil? return false if @date_field_type.nil? return false if @date_profile_property.nil? timedelta_unit_before_date_validator = EnumAttributeValidator.new('String', ["days", "months", "weeks"]) return false unless timedelta_unit_before_date_validator.valid?(@timedelta_unit_before_date) return false if @timedelta_value_before_date.nil? recurrence_frequency_validator = EnumAttributeValidator.new('String', ["annually", "monthly", "never", "weekly"]) return false unless recurrence_frequency_validator.valid?(@recurrence_frequency) timezone_validator = EnumAttributeValidator.new('String', ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "GMT", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", "US/Alaska", "US/Arizona", "US/Central", "US/Eastern", "US/Hawaii", "US/Mountain", "US/Pacific", "UTC", "profile"]) return false unless timezone_validator.valid?(@timezone) return false if @trigger_time.nil? true end |