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.



203
204
205
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 203

def by_day
  @by_day
end

#by_hourObject

Comma separated numbers between 0 to 23



196
197
198
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 196

def by_hour
  @by_hour
end

#by_minuteObject

Comma separated numbers between 0 to 59



194
195
196
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 194

def by_minute
  @by_minute
end

#by_monthObject

Comma separated numbers between 1 to 12



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

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.



206
207
208
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 206

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.



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

def by_offset
  @by_offset
end

#by_secondObject

Comma separated numbers between 0 to 59



192
193
194
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 192

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.



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

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).



209
210
211
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 209

def by_year_day
  @by_year_day
end

#countObject

Returns the value of attribute count.



189
190
191
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 189

def count
  @count
end

#frequencyObject

Returns the value of attribute frequency.



185
186
187
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 185

def frequency
  @frequency
end

#intervalObject

Returns the value of attribute interval.



190
191
192
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 190

def interval
  @interval
end

#nameObject

Returns the value of attribute name.



184
185
186
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 184

def name
  @name
end

#time_zoneObject

TimeZone String



188
189
190
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 188

def time_zone
  @time_zone
end

#untilObject

Returns the value of attribute until.



186
187
188
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 186

def until
  @until
end

#week_start_dayObject

Returns the value of attribute week_start_day.



226
227
228
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 226

def week_start_day
  @week_start_day
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 238

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