Class: Wikidatum::DataType::CommonsMedia
- Inherits:
-
WikibaseString
- Object
- WikibaseString
- Wikidatum::DataType::CommonsMedia
- Defined in:
- lib/wikidatum/data_type/commons_media.rb
Overview
Identical to the WikibaseString type, but we’ll change some metadata to make it clear that they’re technically distinct types.
Instance Attribute Summary
Attributes inherited from WikibaseString
Class Method Summary collapse
Instance Method Summary collapse
-
#wikibase_type ⇒ String
The “type” value used by Wikibase, for use when creating/updating statements.
Methods inherited from WikibaseString
#humanized, #initialize, #to_h
Constructor Details
This class inherits a constructor from Wikidatum::DataType::WikibaseString
Class Method Details
.symbolized_name ⇒ Symbol
17 18 19 |
# File 'lib/wikidatum/data_type/commons_media.rb', line 17 def self.symbolized_name :commons_media end |
Instance Method Details
#wikibase_type ⇒ String
The “type” value used by Wikibase, for use when creating/updating statements.
12 13 14 |
# File 'lib/wikidatum/data_type/commons_media.rb', line 12 def wikibase_type 'commonsMedia' end |