class GimmeWikidata::SearchResult
TODO: DOCUMENT THIS CLASS
Attributes
description[RW]
id[RW]
label[RW]
type[RW]
Public Class Methods
new(id, label, description)
click to toggle source
# File lib/gimme_wikidata/search.rb, line 37 def initialize(id, label, description) @id = id @label = label @description = description case @id[0] when 'Q' @type = Item when 'P' @type = Property else @type = :unknown_type end end