Class: RiCal::PropertyValue::Array

Inherits:
RiCal::PropertyValue show all
Defined in:
lib/ri_cal/property_value/array.rb

Overview

:nodoc:

Direct Known Subclasses

OccurrenceList

Instance Attribute Summary

Attributes inherited from RiCal::PropertyValue

#params, #timezone_finder

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RiCal::PropertyValue

#==, #add_date_times_to, date_or_date_time, date_or_date_time_or_period, #default_tzid, #enumerator, #equality_value, #find_timezone, #for_parent, if_valid_string, #initialize, #parms_string, #ruby_value, #to_options_hash, #to_ri_cal_property_value, #to_s, #tz_info_source?, #validate_value, #visible_params

Constructor Details

This class inherits a constructor from RiCal::PropertyValue

Class Method Details

.convert(timezone_finder, ruby_object) ⇒ Object

:nodoc:



18
19
20
# File 'lib/ri_cal/property_value/array.rb', line 18

def self.convert(timezone_finder, ruby_object) # :nodoc:
  self.new(timezone_finder, :value => ruby_object)
end

Instance Method Details

#valueObject



14
15
16
# File 'lib/ri_cal/property_value/array.rb', line 14

def value
  @value.join(",")
end

#value=(val) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/ri_cal/property_value/array.rb', line 5

def value=(val)
  case val
  when String
    @value = val.split(",")
  else
    @value = val
  end
end