Class: Wikidatum::DataType::NoValue

Inherits:
Base
  • Object
show all
Defined in:
lib/wikidatum/data_type/no_value.rb

Overview

Represents “no value”.

Instance Attribute Summary

Attributes inherited from Base

#content, #type

Instance Method Summary collapse

Methods inherited from Base

#humanized_content, #initialize, #to_h

Constructor Details

This class inherits a constructor from Wikidatum::DataType::Base

Instance Method Details

#humanizednil

The content of the data value object. Use this to get a more sensible representation of the statement’s contents.

Returns:

  • (nil)


23
24
25
# File 'lib/wikidatum/data_type/no_value.rb', line 23

def humanized
  nil
end

#wikibase_typeString

The “type” value used by Wikibase, for use when creating/updating statements.

In this case, the type is a lie.

Returns:

  • (String)


15
16
17
# File 'lib/wikidatum/data_type/no_value.rb', line 15

def wikibase_type
  'string'
end