class Wikidata::Property::Base

Attributes

property[R]

Public Class Methods

new(property) click to toggle source
# File lib/wikidata/property/base.rb, line 7
def initialize property
  @property = Hashie::Mash.new(property)
end

Public Instance Methods

value() click to toggle source
# File lib/wikidata/property/base.rb, line 11
def value
  property.mainsnak.datavalue.value
end