Module: RiCal::Properties::Freebusy
- Included in:
- Component::Freebusy
- Defined in:
- lib/ri_cal/properties/freebusy.rb
Overview
-
©2009 Rick DeNatale
-
All rights reserved. Refer to the file README.txt for the license
Properties::Freebusy provides property accessing methods for the Freebusy class This source file is generated by the rical:gen_propmodules rake tasks, DO NOT EDIT
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(mod) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#==(o) ⇒ Object
:nodoc:.
-
#add_attendee(ruby_value) ⇒ Object
add one value to the ATTENDEE property one instances of CalAddress may be passed to this method.
-
#add_attendees(*ruby_values) ⇒ Object
add one or more values to the ATTENDEE property one or more instances of CalAddress may be passed to this method.
-
#add_comment(ruby_value) ⇒ Object
add one value to the COMMENT property one instances of String may be passed to this method.
-
#add_comments(*ruby_values) ⇒ Object
add one or more values to the COMMENT property one or more instances of String may be passed to this method.
-
#add_date_times_to(required_timezones) ⇒ Object
:nodoc:.
-
#add_freebusy(ruby_value) ⇒ Object
add one value to the FREEBUSY property one instances of Period may be passed to this method.
-
#add_freebusys(*ruby_values) ⇒ Object
add one or more values to the FREEBUSY property one or more instances of Period may be passed to this method.
-
#add_request_status(ruby_value) ⇒ Object
add one value to the REQUEST-STATUS property one instances of String may be passed to this method.
-
#add_request_statuses(*ruby_values) ⇒ Object
add one or more values to the REQUEST-STATUS property one or more instances of String may be passed to this method.
-
#attendee ⇒ Object
return the value of the ATTENDEE property which will be an array of instances of CalAddress.
-
#attendee=(ruby_value) ⇒ Object
set the value of the ATTENDEE property to a single value one instance of CalAddress may be passed to this method.
-
#attendee_property ⇒ Object
return the the ATTENDEE property which will be an array of instances of RiCal::PropertyValueCalAddress.
-
#attendee_property=(*property_values) ⇒ Object
set the the ATTENDEE property one or more instances of RiCal::PropertyValueCalAddress may be passed to this method.
-
#attendee_property_from_string(line) ⇒ Object
:nodoc:.
-
#attendees=(ruby_values) ⇒ Object
set the value of the ATTENDEE property to multiple values one or more instances of CalAddress may be passed to this method.
-
#comment ⇒ Object
return the value of the COMMENT property which will be an array of instances of String.
-
#comment=(ruby_value) ⇒ Object
set the value of the COMMENT property to a single value one instance of String may be passed to this method.
-
#comment_property ⇒ Object
return the the COMMENT property which will be an array of instances of RiCal::PropertyValueText.
-
#comment_property=(*property_values) ⇒ Object
set the the COMMENT property one or more instances of RiCal::PropertyValueText may be passed to this method.
-
#comment_property_from_string(line) ⇒ Object
:nodoc:.
-
#comments=(ruby_values) ⇒ Object
set the value of the COMMENT property to multiple values one or more instances of String may be passed to this method.
-
#contact ⇒ Object
return the value of the CONTACT property which will be an instance of String.
-
#contact=(ruby_value) ⇒ Object
set the value of the CONTACT property.
-
#contact_property ⇒ Object
return the the CONTACT property which will be an instances of RiCal::PropertyValueText.
-
#contact_property=(property_value) ⇒ Object
set the CONTACT property property value should be an instance of RiCal::PropertyValueText.
-
#contact_property_from_string(line) ⇒ Object
:nodoc:.
-
#dtend ⇒ Object
return the value of the DTEND property which will be an instance of either DateTime or Date.
-
#dtend=(ruby_value) ⇒ Object
set the value of the DTEND property.
-
#dtend_property ⇒ Object
return the the DTEND property which will be an instances of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date.
-
#dtend_property=(property_value) ⇒ Object
set the DTEND property property value should be an instance of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date.
-
#dtend_property_from_string(line) ⇒ Object
:nodoc:.
-
#dtstamp ⇒ Object
return the value of the DTSTAMP property which will be an instance of ZuluDateTime.
-
#dtstamp=(ruby_value) ⇒ Object
set the value of the DTSTAMP property.
-
#dtstamp_property ⇒ Object
return the the DTSTAMP property which will be an instances of RiCal::PropertyValueZuluDateTime.
-
#dtstamp_property=(property_value) ⇒ Object
set the DTSTAMP property property value should be an instance of RiCal::PropertyValueZuluDateTime.
-
#dtstamp_property_from_string(line) ⇒ Object
:nodoc:.
-
#dtstart ⇒ Object
return the value of the DTSTART property which will be an instance of either DateTime or Date.
-
#dtstart=(ruby_value) ⇒ Object
set the value of the DTSTART property.
-
#dtstart_property ⇒ Object
return the the DTSTART property which will be an instances of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date.
-
#dtstart_property=(property_value) ⇒ Object
set the DTSTART property property value should be an instance of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date.
-
#dtstart_property_from_string(line) ⇒ Object
:nodoc:.
-
#duration ⇒ Object
return the value of the DURATION property which will be an instance of Duration.
-
#duration=(ruby_value) ⇒ Object
set the value of the DURATION property.
-
#duration_property ⇒ Object
return the the DURATION property which will be an instances of RiCal::PropertyValueDuration.
-
#duration_property=(property_value) ⇒ Object
set the DURATION property property value should be an instance of RiCal::PropertyValueDuration.
-
#duration_property_from_string(line) ⇒ Object
:nodoc:.
-
#export_properties_to(export_stream) ⇒ Object
:nodoc:.
-
#freebusy ⇒ Object
return the value of the FREEBUSY property which will be an array of instances of Period.
-
#freebusy=(ruby_value) ⇒ Object
set the value of the FREEBUSY property to a single value one instance of Period may be passed to this method.
-
#freebusy_property ⇒ Object
return the the FREEBUSY property which will be an array of instances of RiCal::PropertyValuePeriod.
-
#freebusy_property=(*property_values) ⇒ Object
set the the FREEBUSY property one or more instances of RiCal::PropertyValuePeriod may be passed to this method.
-
#freebusy_property_from_string(line) ⇒ Object
:nodoc:.
-
#freebusys=(ruby_values) ⇒ Object
set the value of the FREEBUSY property to multiple values one or more instances of Period may be passed to this method.
-
#initialize_copy(o) ⇒ Object
:nodoc:.
-
#mutual_exclusion_violation ⇒ Object
:nodoc:.
-
#organizer ⇒ Object
return the value of the ORGANIZER property which will be an instance of CalAddress.
-
#organizer=(ruby_value) ⇒ Object
set the value of the ORGANIZER property.
-
#organizer_property ⇒ Object
return the the ORGANIZER property which will be an instances of RiCal::PropertyValueCalAddress.
-
#organizer_property=(property_value) ⇒ Object
set the ORGANIZER property property value should be an instance of RiCal::PropertyValueCalAddress.
-
#organizer_property_from_string(line) ⇒ Object
:nodoc:.
-
#remove_attendee(ruby_value) ⇒ Object
remove one value from the ATTENDEE property one instances of CalAddress may be passed to this method.
-
#remove_attendees(*ruby_values) ⇒ Object
remove one or more values from the ATTENDEE property one or more instances of CalAddress may be passed to this method.
-
#remove_comment(ruby_value) ⇒ Object
remove one value from the COMMENT property one instances of String may be passed to this method.
-
#remove_comments(*ruby_values) ⇒ Object
remove one or more values from the COMMENT property one or more instances of String may be passed to this method.
-
#remove_freebusy(ruby_value) ⇒ Object
remove one value from the FREEBUSY property one instances of Period may be passed to this method.
-
#remove_freebusys(*ruby_values) ⇒ Object
remove one or more values from the FREEBUSY property one or more instances of Period may be passed to this method.
-
#remove_request_status(ruby_value) ⇒ Object
remove one value from the REQUEST-STATUS property one instances of String may be passed to this method.
-
#remove_request_statuses(*ruby_values) ⇒ Object
remove one or more values from the REQUEST-STATUS property one or more instances of String may be passed to this method.
-
#request_status ⇒ Object
return the value of the REQUEST-STATUS property which will be an array of instances of String.
-
#request_status=(ruby_value) ⇒ Object
set the value of the REQUEST-STATUS property to a single value one instance of String may be passed to this method.
-
#request_status_property ⇒ Object
return the the REQUEST-STATUS property which will be an array of instances of RiCal::PropertyValueText.
-
#request_status_property=(*property_values) ⇒ Object
set the the REQUEST-STATUS property one or more instances of RiCal::PropertyValueText may be passed to this method.
-
#request_status_property_from_string(line) ⇒ Object
:nodoc:.
-
#request_statuses=(ruby_values) ⇒ Object
set the value of the REQUEST-STATUS property to multiple values one or more instances of String may be passed to this method.
-
#uid ⇒ Object
return the value of the UID property which will be an instance of String.
-
#uid=(ruby_value) ⇒ Object
set the value of the UID property.
-
#uid_property ⇒ Object
return the the UID property which will be an instances of RiCal::PropertyValueText.
-
#uid_property=(property_value) ⇒ Object
set the UID property property value should be an instance of RiCal::PropertyValueText.
-
#uid_property_from_string(line) ⇒ Object
:nodoc:.
-
#url ⇒ Object
return the value of the URL property which will be an instance of Uri.
-
#url=(ruby_value) ⇒ Object
set the value of the URL property.
-
#url_property ⇒ Object
return the the URL property which will be an instances of RiCal::PropertyValueUri.
-
#url_property=(property_value) ⇒ Object
set the URL property property value should be an instance of RiCal::PropertyValueUri.
-
#url_property_from_string(line) ⇒ Object
:nodoc:.
Class Method Details
.included(mod) ⇒ Object
:nodoc:
584 585 586 |
# File 'lib/ri_cal/properties/freebusy.rb', line 584 def self.included(mod) #:nodoc: mod.extend ClassMethods end |
Instance Method Details
#==(o) ⇒ Object
:nodoc:
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/ri_cal/properties/freebusy.rb', line 538 def ==(o) #:nodoc: if o.class == self.class (contact_property == o.contact_property) && (duration_property == o.duration_property) && (dtend_property == o.dtend_property) && (dtstart_property == o.dtstart_property) && (dtstamp_property == o.dtstamp_property) && (attendee_property == o.attendee_property) && (uid_property == o.uid_property) && (url_property == o.url_property) && (organizer_property == o.organizer_property) && (freebusy_property == o.freebusy_property) && (request_status_property == o.request_status_property) && (comment_property == o.comment_property) else super end end |
#add_attendee(ruby_value) ⇒ Object
add one value to the ATTENDEE property one instances of CalAddress may be passed to this method
311 312 313 |
# File 'lib/ri_cal/properties/freebusy.rb', line 311 def add_attendee(ruby_value) self.attendee_property << RiCal::PropertyValue::CalAddress.convert(self, ruby_value) end |
#add_attendees(*ruby_values) ⇒ Object
add one or more values to the ATTENDEE property one or more instances of CalAddress may be passed to this method
305 306 307 |
# File 'lib/ri_cal/properties/freebusy.rb', line 305 def add_attendees(*ruby_values) ruby_values.each {|val| self.attendee_property << RiCal::PropertyValue::CalAddress.convert(self, val)} end |
#add_comment(ruby_value) ⇒ Object
add one value to the COMMENT property one instances of String may be passed to this method
374 375 376 |
# File 'lib/ri_cal/properties/freebusy.rb', line 374 def add_comment(ruby_value) self.comment_property << RiCal::PropertyValue::Text.convert(self, ruby_value) end |
#add_comments(*ruby_values) ⇒ Object
add one or more values to the COMMENT property one or more instances of String may be passed to this method
368 369 370 |
# File 'lib/ri_cal/properties/freebusy.rb', line 368 def add_comments(*ruby_values) ruby_values.each {|val| self.comment_property << RiCal::PropertyValue::Text.convert(self, val)} end |
#add_date_times_to(required_timezones) ⇒ Object
:nodoc:
573 574 575 576 |
# File 'lib/ri_cal/properties/freebusy.rb', line 573 def add_date_times_to(required_timezones) #:nodoc: add_property_date_times_to(required_timezones, dtstart_property) add_property_date_times_to(required_timezones, dtend_property) end |
#add_freebusy(ruby_value) ⇒ Object
add one value to the FREEBUSY property one instances of Period may be passed to this method
437 438 439 |
# File 'lib/ri_cal/properties/freebusy.rb', line 437 def add_freebusy(ruby_value) self.freebusy_property << RiCal::PropertyValue::Period.convert(self, ruby_value) end |
#add_freebusys(*ruby_values) ⇒ Object
add one or more values to the FREEBUSY property one or more instances of Period may be passed to this method
431 432 433 |
# File 'lib/ri_cal/properties/freebusy.rb', line 431 def add_freebusys(*ruby_values) ruby_values.each {|val| self.freebusy_property << RiCal::PropertyValue::Period.convert(self, val)} end |
#add_request_status(ruby_value) ⇒ Object
add one value to the REQUEST-STATUS property one instances of String may be passed to this method
497 498 499 |
# File 'lib/ri_cal/properties/freebusy.rb', line 497 def add_request_status(ruby_value) self.request_status_property << RiCal::PropertyValue::Text.convert(self, ruby_value) end |
#add_request_statuses(*ruby_values) ⇒ Object
add one or more values to the REQUEST-STATUS property one or more instances of String may be passed to this method
491 492 493 |
# File 'lib/ri_cal/properties/freebusy.rb', line 491 def add_request_statuses(*ruby_values) ruby_values.each {|val| self.request_status_property << RiCal::PropertyValue::Text.convert(self, val)} end |
#attendee ⇒ Object
return the value of the ATTENDEE property which will be an array of instances of CalAddress
329 330 331 |
# File 'lib/ri_cal/properties/freebusy.rb', line 329 def attendee attendee_property.map {|prop| prop ? prop.ruby_value : prop} end |
#attendee=(ruby_value) ⇒ Object
set the value of the ATTENDEE property to a single value one instance of CalAddress may be passed to this method
299 300 301 |
# File 'lib/ri_cal/properties/freebusy.rb', line 299 def attendee=(ruby_value) @attendee_property = [RiCal::PropertyValue::CalAddress.convert(self, ruby_value)] end |
#attendee_property ⇒ Object
return the the ATTENDEE property which will be an array of instances of RiCal::PropertyValueCalAddress
- purpose (from RFC 2445)
-
The property defines an ‘Attendee’ within a calendar component.
see RFC 2445 4.8.4.1 pp 102-104
281 282 283 |
# File 'lib/ri_cal/properties/freebusy.rb', line 281 def attendee_property @attendee_property ||= [] end |
#attendee_property=(*property_values) ⇒ Object
set the the ATTENDEE property one or more instances of RiCal::PropertyValueCalAddress may be passed to this method
287 288 289 |
# File 'lib/ri_cal/properties/freebusy.rb', line 287 def attendee_property=(*property_values) @attendee_property= property_values end |
#attendee_property_from_string(line) ⇒ Object
:nodoc:
333 334 335 |
# File 'lib/ri_cal/properties/freebusy.rb', line 333 def attendee_property_from_string(line) # :nodoc: attendee_property << RiCal::PropertyValue::CalAddress.new(self, line) end |
#attendees=(ruby_values) ⇒ Object
set the value of the ATTENDEE property to multiple values one or more instances of CalAddress may be passed to this method
293 294 295 |
# File 'lib/ri_cal/properties/freebusy.rb', line 293 def attendees=(ruby_values) @attendee_property = ruby_values.map {|val| RiCal::PropertyValue::CalAddress.convert(self, val)} end |
#comment ⇒ Object
return the value of the COMMENT property which will be an array of instances of String
392 393 394 |
# File 'lib/ri_cal/properties/freebusy.rb', line 392 def comment comment_property.map {|prop| prop ? prop.ruby_value : prop} end |
#comment=(ruby_value) ⇒ Object
set the value of the COMMENT property to a single value one instance of String may be passed to this method
362 363 364 |
# File 'lib/ri_cal/properties/freebusy.rb', line 362 def comment=(ruby_value) @comment_property = [RiCal::PropertyValue::Text.convert(self, ruby_value)] end |
#comment_property ⇒ Object
return the the COMMENT property which will be an array of instances of RiCal::PropertyValueText
- purpose (from RFC 2445)
-
This property specifies non-processing information intended to provide a comment to the calendar user.
see RFC 2445 4.8.1.4 pp 80-81
344 345 346 |
# File 'lib/ri_cal/properties/freebusy.rb', line 344 def comment_property @comment_property ||= [] end |
#comment_property=(*property_values) ⇒ Object
set the the COMMENT property one or more instances of RiCal::PropertyValueText may be passed to this method
350 351 352 |
# File 'lib/ri_cal/properties/freebusy.rb', line 350 def comment_property=(*property_values) @comment_property= property_values end |
#comment_property_from_string(line) ⇒ Object
:nodoc:
396 397 398 |
# File 'lib/ri_cal/properties/freebusy.rb', line 396 def comment_property_from_string(line) # :nodoc: comment_property << RiCal::PropertyValue::Text.new(self, line) end |
#comments=(ruby_values) ⇒ Object
set the value of the COMMENT property to multiple values one or more instances of String may be passed to this method
356 357 358 |
# File 'lib/ri_cal/properties/freebusy.rb', line 356 def comments=(ruby_values) @comment_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)} end |
#contact ⇒ Object
return the value of the CONTACT property which will be an instance of String
34 35 36 |
# File 'lib/ri_cal/properties/freebusy.rb', line 34 def contact contact_property ? contact_property.ruby_value : nil end |
#contact=(ruby_value) ⇒ Object
set the value of the CONTACT property
28 29 30 |
# File 'lib/ri_cal/properties/freebusy.rb', line 28 def contact=(ruby_value) self.contact_property= RiCal::PropertyValue::Text.convert(self, ruby_value) end |
#contact_property ⇒ Object
return the the CONTACT property which will be an instances of RiCal::PropertyValueText
- purpose (from RFC 2445)
-
The property is used to represent contact information oralternately a reference to contact information associated with the calendar component.
see RFC 2445 4.8.4.2 pp 104-106
17 18 19 |
# File 'lib/ri_cal/properties/freebusy.rb', line 17 def contact_property @contact_property end |
#contact_property=(property_value) ⇒ Object
set the CONTACT property property value should be an instance of RiCal::PropertyValueText
23 24 25 |
# File 'lib/ri_cal/properties/freebusy.rb', line 23 def contact_property=(property_value) @contact_property = property_value end |
#contact_property_from_string(line) ⇒ Object
:nodoc:
38 39 40 |
# File 'lib/ri_cal/properties/freebusy.rb', line 38 def contact_property_from_string(line) # :nodoc: @contact_property = RiCal::PropertyValue::Text.new(self, line) end |
#dtend ⇒ Object
return the value of the DTEND property which will be an instance of either DateTime or Date
100 101 102 |
# File 'lib/ri_cal/properties/freebusy.rb', line 100 def dtend dtend_property ? dtend_property.ruby_value : nil end |
#dtend=(ruby_value) ⇒ Object
set the value of the DTEND property
94 95 96 |
# File 'lib/ri_cal/properties/freebusy.rb', line 94 def dtend=(ruby_value) self.dtend_property= RiCal::PropertyValue::DateTime.convert(self, ruby_value) end |
#dtend_property ⇒ Object
return the the DTEND property which will be an instances of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date
- purpose (from RFC 2445)
-
This property specifies the date and time that a calendar component ends.
see RFC 2445 4.8.2.2 pp 91-92
83 84 85 |
# File 'lib/ri_cal/properties/freebusy.rb', line 83 def dtend_property @dtend_property end |
#dtend_property=(property_value) ⇒ Object
set the DTEND property property value should be an instance of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date
89 90 91 |
# File 'lib/ri_cal/properties/freebusy.rb', line 89 def dtend_property=(property_value) @dtend_property = property_value ? property_value.for_parent(self) : nil end |
#dtend_property_from_string(line) ⇒ Object
:nodoc:
104 105 106 |
# File 'lib/ri_cal/properties/freebusy.rb', line 104 def dtend_property_from_string(line) # :nodoc: @dtend_property = RiCal::PropertyValue::DateTime.or_date(self, line) end |
#dtstamp ⇒ Object
return the value of the DTSTAMP property which will be an instance of ZuluDateTime
166 167 168 |
# File 'lib/ri_cal/properties/freebusy.rb', line 166 def dtstamp dtstamp_property ? dtstamp_property.ruby_value : nil end |
#dtstamp=(ruby_value) ⇒ Object
set the value of the DTSTAMP property
160 161 162 |
# File 'lib/ri_cal/properties/freebusy.rb', line 160 def dtstamp=(ruby_value) self.dtstamp_property= RiCal::PropertyValue::ZuluDateTime.convert(self, ruby_value) end |
#dtstamp_property ⇒ Object
return the the DTSTAMP property which will be an instances of RiCal::PropertyValueZuluDateTime
- purpose (from RFC 2445)
-
This property indicates the date/time that the instance of the iCalendar object was created.
see RFC 2445 4.8.7.2 pp 130-131
149 150 151 |
# File 'lib/ri_cal/properties/freebusy.rb', line 149 def dtstamp_property @dtstamp_property end |
#dtstamp_property=(property_value) ⇒ Object
set the DTSTAMP property property value should be an instance of RiCal::PropertyValueZuluDateTime
155 156 157 |
# File 'lib/ri_cal/properties/freebusy.rb', line 155 def dtstamp_property=(property_value) @dtstamp_property = property_value end |
#dtstamp_property_from_string(line) ⇒ Object
:nodoc:
170 171 172 |
# File 'lib/ri_cal/properties/freebusy.rb', line 170 def dtstamp_property_from_string(line) # :nodoc: @dtstamp_property = RiCal::PropertyValue::ZuluDateTime.new(self, line) end |
#dtstart ⇒ Object
return the value of the DTSTART property which will be an instance of either DateTime or Date
67 68 69 |
# File 'lib/ri_cal/properties/freebusy.rb', line 67 def dtstart dtstart_property ? dtstart_property.ruby_value : nil end |
#dtstart=(ruby_value) ⇒ Object
set the value of the DTSTART property
61 62 63 |
# File 'lib/ri_cal/properties/freebusy.rb', line 61 def dtstart=(ruby_value) self.dtstart_property= RiCal::PropertyValue::DateTime.convert(self, ruby_value) end |
#dtstart_property ⇒ Object
return the the DTSTART property which will be an instances of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date
- purpose (from RFC 2445)
-
This property specifies when the calendar component begins.
see RFC 2445 4.8.2.4 pp 93-94
50 51 52 |
# File 'lib/ri_cal/properties/freebusy.rb', line 50 def dtstart_property @dtstart_property end |
#dtstart_property=(property_value) ⇒ Object
set the DTSTART property property value should be an instance of either RiCal::PropertyValue::DateTime or RiCal::PropertyValue::Date
56 57 58 |
# File 'lib/ri_cal/properties/freebusy.rb', line 56 def dtstart_property=(property_value) @dtstart_property = property_value ? property_value.for_parent(self) : nil end |
#dtstart_property_from_string(line) ⇒ Object
:nodoc:
71 72 73 |
# File 'lib/ri_cal/properties/freebusy.rb', line 71 def dtstart_property_from_string(line) # :nodoc: @dtstart_property = RiCal::PropertyValue::DateTime.or_date(self, line) end |
#duration ⇒ Object
return the value of the DURATION property which will be an instance of Duration
133 134 135 |
# File 'lib/ri_cal/properties/freebusy.rb', line 133 def duration duration_property ? duration_property.ruby_value : nil end |
#duration=(ruby_value) ⇒ Object
set the value of the DURATION property
127 128 129 |
# File 'lib/ri_cal/properties/freebusy.rb', line 127 def duration=(ruby_value) self.duration_property= RiCal::PropertyValue::Duration.convert(self, ruby_value) end |
#duration_property ⇒ Object
return the the DURATION property which will be an instances of RiCal::PropertyValueDuration
- purpose (from RFC 2445)
-
This property specifies a positive duration of time.
see RFC 2445 4.8.2.5 pp 94-95
116 117 118 |
# File 'lib/ri_cal/properties/freebusy.rb', line 116 def duration_property @duration_property end |
#duration_property=(property_value) ⇒ Object
set the DURATION property property value should be an instance of RiCal::PropertyValueDuration
122 123 124 |
# File 'lib/ri_cal/properties/freebusy.rb', line 122 def duration_property=(property_value) @duration_property = property_value end |
#duration_property_from_string(line) ⇒ Object
:nodoc:
137 138 139 |
# File 'lib/ri_cal/properties/freebusy.rb', line 137 def duration_property_from_string(line) # :nodoc: @duration_property = RiCal::PropertyValue::Duration.new(self, line) end |
#export_properties_to(export_stream) ⇒ Object
:nodoc:
523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/ri_cal/properties/freebusy.rb', line 523 def export_properties_to(export_stream) #:nodoc: export_prop_to(export_stream, "CONTACT", @contact_property) export_prop_to(export_stream, "DURATION", @duration_property) export_prop_to(export_stream, "DTEND", @dtend_property) export_prop_to(export_stream, "DTSTART", @dtstart_property) export_prop_to(export_stream, "DTSTAMP", @dtstamp_property) export_prop_to(export_stream, "ATTENDEE", @attendee_property) export_prop_to(export_stream, "UID", @uid_property) export_prop_to(export_stream, "URL", @url_property) export_prop_to(export_stream, "ORGANIZER", @organizer_property) export_prop_to(export_stream, "FREEBUSY", @freebusy_property) export_prop_to(export_stream, "REQUEST-STATUS", @request_status_property) export_prop_to(export_stream, "COMMENT", @comment_property) end |
#freebusy ⇒ Object
return the value of the FREEBUSY property which will be an array of instances of Period
455 456 457 |
# File 'lib/ri_cal/properties/freebusy.rb', line 455 def freebusy freebusy_property.map {|prop| prop ? prop.ruby_value : prop} end |
#freebusy=(ruby_value) ⇒ Object
set the value of the FREEBUSY property to a single value one instance of Period may be passed to this method
425 426 427 |
# File 'lib/ri_cal/properties/freebusy.rb', line 425 def freebusy=(ruby_value) @freebusy_property = [RiCal::PropertyValue::Period.convert(self, ruby_value)] end |
#freebusy_property ⇒ Object
return the the FREEBUSY property which will be an array of instances of RiCal::PropertyValuePeriod
- purpose (from RFC 2445)
-
This property defines one or more free or busy time intervals.
see RFC 2445 4.8.2.6 pp 95-96
407 408 409 |
# File 'lib/ri_cal/properties/freebusy.rb', line 407 def freebusy_property @freebusy_property ||= [] end |
#freebusy_property=(*property_values) ⇒ Object
set the the FREEBUSY property one or more instances of RiCal::PropertyValuePeriod may be passed to this method
413 414 415 |
# File 'lib/ri_cal/properties/freebusy.rb', line 413 def freebusy_property=(*property_values) @freebusy_property= property_values end |
#freebusy_property_from_string(line) ⇒ Object
:nodoc:
459 460 461 |
# File 'lib/ri_cal/properties/freebusy.rb', line 459 def freebusy_property_from_string(line) # :nodoc: freebusy_property << RiCal::PropertyValue::Period.new(self, line) end |
#freebusys=(ruby_values) ⇒ Object
set the value of the FREEBUSY property to multiple values one or more instances of Period may be passed to this method
419 420 421 |
# File 'lib/ri_cal/properties/freebusy.rb', line 419 def freebusys=(ruby_values) @freebusy_property = ruby_values.map {|val| RiCal::PropertyValue::Period.convert(self, val)} end |
#initialize_copy(o) ⇒ Object
:nodoc:
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/ri_cal/properties/freebusy.rb', line 557 def initialize_copy(o) #:nodoc: super contact_property = contact_property && contact_property.dup duration_property = duration_property && duration_property.dup dtend_property = dtend_property && dtend_property.dup dtstart_property = dtstart_property && dtstart_property.dup dtstamp_property = dtstamp_property && dtstamp_property.dup attendee_property = attendee_property && attendee_property.dup uid_property = uid_property && uid_property.dup url_property = url_property && url_property.dup organizer_property = organizer_property && organizer_property.dup freebusy_property = freebusy_property && freebusy_property.dup request_status_property = request_status_property && request_status_property.dup comment_property = comment_property && comment_property.dup end |
#mutual_exclusion_violation ⇒ Object
:nodoc:
588 589 590 |
# File 'lib/ri_cal/properties/freebusy.rb', line 588 def mutual_exclusion_violation #:nodoc: false end |
#organizer ⇒ Object
return the value of the ORGANIZER property which will be an instance of CalAddress
199 200 201 |
# File 'lib/ri_cal/properties/freebusy.rb', line 199 def organizer organizer_property ? organizer_property.ruby_value : nil end |
#organizer=(ruby_value) ⇒ Object
set the value of the ORGANIZER property
193 194 195 |
# File 'lib/ri_cal/properties/freebusy.rb', line 193 def organizer=(ruby_value) self.organizer_property= RiCal::PropertyValue::CalAddress.convert(self, ruby_value) end |
#organizer_property ⇒ Object
return the the ORGANIZER property which will be an instances of RiCal::PropertyValueCalAddress
- purpose (from RFC 2445)
-
The property defines the organizer for a calendar component.
see RFC 2445 4.8.4.3 pp 106-107
182 183 184 |
# File 'lib/ri_cal/properties/freebusy.rb', line 182 def organizer_property @organizer_property end |
#organizer_property=(property_value) ⇒ Object
set the ORGANIZER property property value should be an instance of RiCal::PropertyValueCalAddress
188 189 190 |
# File 'lib/ri_cal/properties/freebusy.rb', line 188 def organizer_property=(property_value) @organizer_property = property_value end |
#organizer_property_from_string(line) ⇒ Object
:nodoc:
203 204 205 |
# File 'lib/ri_cal/properties/freebusy.rb', line 203 def organizer_property_from_string(line) # :nodoc: @organizer_property = RiCal::PropertyValue::CalAddress.new(self, line) end |
#remove_attendee(ruby_value) ⇒ Object
remove one value from the ATTENDEE property one instances of CalAddress may be passed to this method
323 324 325 |
# File 'lib/ri_cal/properties/freebusy.rb', line 323 def remove_attendee(ruby_value) self.attendee_property.delete(RiCal::PropertyValue::CalAddress.convert(self, ruby_value)) end |
#remove_attendees(*ruby_values) ⇒ Object
remove one or more values from the ATTENDEE property one or more instances of CalAddress may be passed to this method
317 318 319 |
# File 'lib/ri_cal/properties/freebusy.rb', line 317 def remove_attendees(*ruby_values) ruby_values.each {|val| self.attendee_property.delete(RiCal::PropertyValue::CalAddress.convert(self, val))} end |
#remove_comment(ruby_value) ⇒ Object
remove one value from the COMMENT property one instances of String may be passed to this method
386 387 388 |
# File 'lib/ri_cal/properties/freebusy.rb', line 386 def remove_comment(ruby_value) self.comment_property.delete(RiCal::PropertyValue::Text.convert(self, ruby_value)) end |
#remove_comments(*ruby_values) ⇒ Object
remove one or more values from the COMMENT property one or more instances of String may be passed to this method
380 381 382 |
# File 'lib/ri_cal/properties/freebusy.rb', line 380 def remove_comments(*ruby_values) ruby_values.each {|val| self.comment_property.delete(RiCal::PropertyValue::Text.convert(self, val))} end |
#remove_freebusy(ruby_value) ⇒ Object
remove one value from the FREEBUSY property one instances of Period may be passed to this method
449 450 451 |
# File 'lib/ri_cal/properties/freebusy.rb', line 449 def remove_freebusy(ruby_value) self.freebusy_property.delete(RiCal::PropertyValue::Period.convert(self, ruby_value)) end |
#remove_freebusys(*ruby_values) ⇒ Object
remove one or more values from the FREEBUSY property one or more instances of Period may be passed to this method
443 444 445 |
# File 'lib/ri_cal/properties/freebusy.rb', line 443 def remove_freebusys(*ruby_values) ruby_values.each {|val| self.freebusy_property.delete(RiCal::PropertyValue::Period.convert(self, val))} end |
#remove_request_status(ruby_value) ⇒ Object
remove one value from the REQUEST-STATUS property one instances of String may be passed to this method
509 510 511 |
# File 'lib/ri_cal/properties/freebusy.rb', line 509 def remove_request_status(ruby_value) self.request_status_property.delete(RiCal::PropertyValue::Text.convert(self, ruby_value)) end |
#remove_request_statuses(*ruby_values) ⇒ Object
remove one or more values from the REQUEST-STATUS property one or more instances of String may be passed to this method
503 504 505 |
# File 'lib/ri_cal/properties/freebusy.rb', line 503 def remove_request_statuses(*ruby_values) ruby_values.each {|val| self.request_status_property.delete(RiCal::PropertyValue::Text.convert(self, val))} end |
#request_status ⇒ Object
return the value of the REQUEST-STATUS property which will be an array of instances of String
515 516 517 |
# File 'lib/ri_cal/properties/freebusy.rb', line 515 def request_status request_status_property.map {|prop| prop ? prop.ruby_value : prop} end |
#request_status=(ruby_value) ⇒ Object
set the value of the REQUEST-STATUS property to a single value one instance of String may be passed to this method
485 486 487 |
# File 'lib/ri_cal/properties/freebusy.rb', line 485 def request_status=(ruby_value) @request_status_property = [RiCal::PropertyValue::Text.convert(self, ruby_value)] end |
#request_status_property ⇒ Object
return the the REQUEST-STATUS property which will be an array of instances of RiCal::PropertyValueText
see RFC 2445 4.8.8.2 pp 134-136
467 468 469 |
# File 'lib/ri_cal/properties/freebusy.rb', line 467 def request_status_property @request_status_property ||= [] end |
#request_status_property=(*property_values) ⇒ Object
set the the REQUEST-STATUS property one or more instances of RiCal::PropertyValueText may be passed to this method
473 474 475 |
# File 'lib/ri_cal/properties/freebusy.rb', line 473 def request_status_property=(*property_values) @request_status_property= property_values end |
#request_status_property_from_string(line) ⇒ Object
:nodoc:
519 520 521 |
# File 'lib/ri_cal/properties/freebusy.rb', line 519 def request_status_property_from_string(line) # :nodoc: request_status_property << RiCal::PropertyValue::Text.new(self, line) end |
#request_statuses=(ruby_values) ⇒ Object
set the value of the REQUEST-STATUS property to multiple values one or more instances of String may be passed to this method
479 480 481 |
# File 'lib/ri_cal/properties/freebusy.rb', line 479 def request_statuses=(ruby_values) @request_status_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)} end |
#uid ⇒ Object
return the value of the UID property which will be an instance of String
232 233 234 |
# File 'lib/ri_cal/properties/freebusy.rb', line 232 def uid uid_property ? uid_property.ruby_value : nil end |
#uid=(ruby_value) ⇒ Object
set the value of the UID property
226 227 228 |
# File 'lib/ri_cal/properties/freebusy.rb', line 226 def uid=(ruby_value) self.uid_property= RiCal::PropertyValue::Text.convert(self, ruby_value) end |
#uid_property ⇒ Object
return the the UID property which will be an instances of RiCal::PropertyValueText
- purpose (from RFC 2445)
-
This property defines the persistent, globally unique identifier for the calendar component.
see RFC 2445 4.8.4.7 pp 111-112
215 216 217 |
# File 'lib/ri_cal/properties/freebusy.rb', line 215 def uid_property @uid_property end |
#uid_property=(property_value) ⇒ Object
set the UID property property value should be an instance of RiCal::PropertyValueText
221 222 223 |
# File 'lib/ri_cal/properties/freebusy.rb', line 221 def uid_property=(property_value) @uid_property = property_value end |
#uid_property_from_string(line) ⇒ Object
:nodoc:
236 237 238 |
# File 'lib/ri_cal/properties/freebusy.rb', line 236 def uid_property_from_string(line) # :nodoc: @uid_property = RiCal::PropertyValue::Text.new(self, line) end |
#url ⇒ Object
return the value of the URL property which will be an instance of Uri
265 266 267 |
# File 'lib/ri_cal/properties/freebusy.rb', line 265 def url url_property ? url_property.ruby_value : nil end |
#url=(ruby_value) ⇒ Object
set the value of the URL property
259 260 261 |
# File 'lib/ri_cal/properties/freebusy.rb', line 259 def url=(ruby_value) self.url_property= RiCal::PropertyValue::Uri.convert(self, ruby_value) end |
#url_property ⇒ Object
return the the URL property which will be an instances of RiCal::PropertyValueUri
- purpose (from RFC 2445)
-
This property defines a Uniform Resource Locator (URL) associated with the iCalendar object.
see RFC 2445 4.8.4.6 pp 110-111
248 249 250 |
# File 'lib/ri_cal/properties/freebusy.rb', line 248 def url_property @url_property end |
#url_property=(property_value) ⇒ Object
set the URL property property value should be an instance of RiCal::PropertyValueUri
254 255 256 |
# File 'lib/ri_cal/properties/freebusy.rb', line 254 def url_property=(property_value) @url_property = property_value end |
#url_property_from_string(line) ⇒ Object
:nodoc:
269 270 271 |
# File 'lib/ri_cal/properties/freebusy.rb', line 269 def url_property_from_string(line) # :nodoc: @url_property = RiCal::PropertyValue::Uri.new(self, line) end |