Class: Wikidata::Property::Base
- Inherits:
-
Object
- Object
- Wikidata::Property::Base
- Defined in:
- lib/wikidata/property/base.rb
Direct Known Subclasses
CommonsMedia, GlobeCoordinate, MonolingualText, Quantity, String, Time, Url
Instance Attribute Summary collapse
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
-
#initialize(property) ⇒ Base
constructor
A new instance of Base.
- #value ⇒ Object
Constructor Details
Instance Attribute Details
#property ⇒ Object (readonly)
Returns the value of attribute property.
6 7 8 |
# File 'lib/wikidata/property/base.rb', line 6 def property @property end |
Instance Method Details
#value ⇒ Object
12 13 14 |
# File 'lib/wikidata/property/base.rb', line 12 def value property.mainsnak.datavalue.value end |