class Owldiff::OntologyEntity
Attributes
full[RW]
short[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/owldiff/ontology_entity.rb, line 15 def self.from_hash hash OntologyEntity.new(hash["short"],hash["full"]) end
new(short, full)
click to toggle source
# File lib/owldiff/ontology_entity.rb, line 4 def initialize short, full @short, @full = short, full end
Public Instance Methods
to_json(*opts)
click to toggle source
# File lib/owldiff/ontology_entity.rb, line 8 def to_json(*opts) { short: @short, full: @full }.to_json(*opts) end