Class: Tilia::VObject::Property::Unknown
- Inherits:
-
Text
- Object
- Node
- Tilia::VObject::Property
- Text
- Tilia::VObject::Property::Unknown
- 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
Attributes inherited from Tilia::VObject::Property
#delimiter, #group, #name, #parameters, #value
Attributes inherited from Node
Instance Method Summary collapse
-
#json_value ⇒ array
Returns the value, in the format it should be encoded for json.
-
#value_type ⇒ String
Returns the type of value.
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_value ⇒ array
Returns the value, in the format it should be encoded for json.
This method must always return an array.
14 15 16 |
# File 'lib/tilia/v_object/property/unknown.rb', line 14 def json_value [raw_mime_dir_value] end |
#value_type ⇒ String
Returns the type of value.
This corresponds to the VALUE= parameter. Every property also has a ‘default’ valueType.
24 25 26 |
# File 'lib/tilia/v_object/property/unknown.rb', line 24 def value_type 'UNKNOWN' end |