Class: Kaltura::KalturaScheduleEventRecurrence

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_schedule_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#by_dayObject

Comma separated of KalturaScheduleEventRecurrenceDay Each byDay value can also be preceded by a positive (+n) or negative (-n) integer. If present, this indicates the nth occurrence of the specific day within the MONTHLY or YEARLY RRULE. For example, within a MONTHLY rule, +1MO (or simply 1MO) represents the first Monday within the month, whereas -1MO represents the last Monday of the month. If an integer modifier is not present, it means all days of this type within the specified frequency. For example, within a MONTHLY rule, MO represents all Mondays within the month.



231
232
233
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 231

def by_day
  @by_day
end

#by_hourObject

Comma separated numbers between 0 to 23



224
225
226
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 224

def by_hour
  @by_hour
end

#by_minuteObject

Comma separated numbers between 0 to 59



222
223
224
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 222

def by_minute
  @by_minute
end

#by_monthObject

Comma separated numbers between 1 to 12



246
247
248
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 246

def by_month
  @by_month
end

#by_month_dayObject

Comma separated of numbers between -31 to 31, excluding 0. For example, -10 represents the tenth to the last day of the month.



234
235
236
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 234

def by_month_day
  @by_month_day
end

#by_offsetObject

Comma separated of numbers between -366 to 366, excluding 0. Corresponds to the nth occurrence within the set of events specified by the rule. It must only be used in conjunction with another byrule part. For example “the last work day of the month” could be represented as: frequency=MONTHLY;byDay=MO,TU,WE,TH,FR;byOffset=-1 Each byOffset value can include a positive (+n) or negative (-n) integer. If present, this indicates the nth occurrence of the specific occurrence within the set of events specified by the rule.



253
254
255
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 253

def by_offset
  @by_offset
end

#by_secondObject

Comma separated numbers between 0 to 59



220
221
222
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 220

def by_second
  @by_second
end

#by_week_numberObject

Comma separated of numbers between -53 to 53, excluding 0. This corresponds to weeks according to week numbering. A week is defined as a seven day period, starting on the day of the week defined to be the week start. Week number one of the calendar year is the first week which contains at least four (4) days in that calendar year. This rule part is only valid for YEARLY frequency. For example, 3 represents the third week of the year.



244
245
246
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 244

def by_week_number
  @by_week_number
end

#by_year_dayObject

Comma separated of numbers between -366 to 366, excluding 0. For example, -1 represents the last day of the year (December 31st) and -306 represents the 306th to the last day of the year (March 1st).



237
238
239
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 237

def by_year_day
  @by_year_day
end

#countObject

Returns the value of attribute count.



217
218
219
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 217

def count
  @count
end

#frequencyObject

Returns the value of attribute frequency.



213
214
215
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 213

def frequency
  @frequency
end

#intervalObject

Returns the value of attribute interval.



218
219
220
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 218

def interval
  @interval
end

#nameObject

Returns the value of attribute name.



212
213
214
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 212

def name
  @name
end

#time_zoneObject

TimeZone String



216
217
218
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 216

def time_zone
  @time_zone
end

#untilObject

Returns the value of attribute until.



214
215
216
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 214

def until
  @until
end

#week_start_dayObject

Returns the value of attribute week_start_day.



254
255
256
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 254

def week_start_day
  @week_start_day
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 266

def from_xml(xml_element)
	super
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['frequency'] != nil
		self.frequency = xml_element.elements['frequency'].text
	end
	if xml_element.elements['until'] != nil
		self.until = xml_element.elements['until'].text
	end
	if xml_element.elements['timeZone'] != nil
		self.time_zone = xml_element.elements['timeZone'].text
	end
	if xml_element.elements['count'] != nil
		self.count = xml_element.elements['count'].text
	end
	if xml_element.elements['interval'] != nil
		self.interval = xml_element.elements['interval'].text
	end
	if xml_element.elements['bySecond'] != nil
		self.by_second = xml_element.elements['bySecond'].text
	end
	if xml_element.elements['byMinute'] != nil
		self.by_minute = xml_element.elements['byMinute'].text
	end
	if xml_element.elements['byHour'] != nil
		self.by_hour = xml_element.elements['byHour'].text
	end
	if xml_element.elements['byDay'] != nil
		self.by_day = xml_element.elements['byDay'].text
	end
	if xml_element.elements['byMonthDay'] != nil
		self.by_month_day = xml_element.elements['byMonthDay'].text
	end
	if xml_element.elements['byYearDay'] != nil
		self.by_year_day = xml_element.elements['byYearDay'].text
	end
	if xml_element.elements['byWeekNumber'] != nil
		self.by_week_number = xml_element.elements['byWeekNumber'].text
	end
	if xml_element.elements['byMonth'] != nil
		self.by_month = xml_element.elements['byMonth'].text
	end
	if xml_element.elements['byOffset'] != nil
		self.by_offset = xml_element.elements['byOffset'].text
	end
	if xml_element.elements['weekStartDay'] != nil
		self.week_start_day = xml_element.elements['weekStartDay'].text
	end
end