Class: Wikidata::Property::MonolingualText

Inherits:
Base
  • Object
show all
Defined in:
lib/wikidata/property/monolingual_text.rb

Instance Attribute Summary

Attributes inherited from Base

#property

Instance Method Summary collapse

Methods inherited from Base

#initialize, #value

Constructor Details

This class inherits a constructor from Wikidata::Property::Base

Instance Method Details

#languageObject



8
9
10
# File 'lib/wikidata/property/monolingual_text.rb', line 8

def language
  value.language
end

#textObject



4
5
6
# File 'lib/wikidata/property/monolingual_text.rb', line 4

def text
  value.text
end