Class: Vobject::Vcalendar::PropertyValue::Requeststatusvalue

Inherits:
PropertyValue
  • Object
show all
Defined in:
lib/vobject/vcalendar/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Requeststatusvalue

Returns a new instance of Requeststatusvalue.



524
525
526
527
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 524

def initialize(val)
  self.value = val
  self.type = "requeststatusvalue"
end

Instance Method Details

#to_hashObject



535
536
537
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 535

def to_hash
  value
end

#to_sObject



529
530
531
532
533
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 529

def to_s
  ret = "#{value[:statcode]};#{value[:statdesc]}"
  ret += ";#{value[:extdata]}" if value[:extdata]
  ret
end