class Reality::Wikidata::Link

Attributes

id[R]
label[R]

Public Class Methods

new(id, label = nil) click to toggle source
# File lib/reality/wikidata.rb, line 11
def initialize(id, label = nil)
  @id, @label = id, label
end

Public Instance Methods

inspect() click to toggle source
# File lib/reality/wikidata.rb, line 15
def inspect
  "#<#{self.class}(#{[id, label].compact.join(': ')})>"
end
to_s() click to toggle source
# File lib/reality/wikidata.rb, line 19
def to_s
  label || id
end