Class: Wikidatum::DataType::NoValue
- Defined in:
- lib/wikidatum/data_type/no_value.rb
Overview
Represents “no value”.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#humanized ⇒ nil
The content of the data value object.
-
#wikibase_type ⇒ String
The “type” value used by Wikibase, for use when creating/updating statements.
Methods inherited from Base
#humanized_content, #initialize, #to_h
Constructor Details
This class inherits a constructor from Wikidatum::DataType::Base
Instance Method Details
#humanized ⇒ nil
The content of the data value object. Use this to get a more sensible representation of the statement’s contents.
23 24 25 |
# File 'lib/wikidatum/data_type/no_value.rb', line 23 def humanized nil end |
#wikibase_type ⇒ String
The “type” value used by Wikibase, for use when creating/updating statements.
In this case, the type is a lie.
15 16 17 |
# File 'lib/wikidatum/data_type/no_value.rb', line 15 def wikibase_type 'string' end |