Class: Tilia::VObject::Property::Unknown

Inherits:
Text show all
Defined in:
lib/tilia/v_object/property/unknown.rb

Overview

Unknown property.

This object represents any properties not recognized by the parser. This type of value has been introduced by the jCal, jCard specs.

Constant Summary

Constants inherited from Node

Node::PROFILE_CALDAV, Node::PROFILE_CARDDAV, Node::REPAIR

Instance Attribute Summary

Attributes inherited from Text

#delimiter

Attributes inherited from Tilia::VObject::Property

#delimiter, #group, #name, #parameters, #value

Attributes inherited from Node

#iterator, #parent

Instance Method Summary collapse

Methods inherited from Text

#initialize, #quoted_printable_value=, #raw_mime_dir_value, #raw_mime_dir_value=, #serialize, #validate

Methods inherited from Tilia::VObject::Property

#==, #[], #[]=, #add, #delete, #destroy, #initialize, #initialize_copy, #json_serialize, #json_value=, #key?, #parts, #parts=, #raw_mime_dir_value, #raw_mime_dir_value=, #serialize, #to_s, #validate, #xml_serialize, #xml_value=

Methods inherited from Node

#==, #[], #[]=, #delete, #destroy, #each, #initialize, #json_serialize, #key?, #serialize, #size, #validate, #xml_serialize

Constructor Details

This class inherits a constructor from Tilia::VObject::Property::Text

Instance Method Details

#json_valuearray

Returns the value, in the format it should be encoded for json.

This method must always return an array.

Returns:

  • (array)


14
15
16
# File 'lib/tilia/v_object/property/unknown.rb', line 14

def json_value
  [raw_mime_dir_value]
end

#value_typeString

Returns the type of value.

This corresponds to the VALUE= parameter. Every property also has a ‘default’ valueType.

Returns:

  • (String)


24
25
26
# File 'lib/tilia/v_object/property/unknown.rb', line 24

def value_type
  'UNKNOWN'
end