Class: Rafflesia::OntologyDiffChange

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/ontology_diff_change.rb

Constant Summary collapse

HASH_ATTRS =
{
  after: :after,
  before: :before,
  kind: :kind,
  path: :path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyDiffChange

Returns a new instance of OntologyDiffChange.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @after = hash[:after]
  @before = hash[:before]
  @kind = hash[:kind]
  @path = hash[:path]
end

Instance Attribute Details

#afterObject

Returns the value of attribute after.



15
16
17
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15

def after
  @after
end

#beforeObject

Returns the value of attribute before.



15
16
17
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15

def before
  @before
end

#kindObject

Returns the value of attribute kind.



15
16
17
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15

def kind
  @kind
end

#pathObject

Returns the value of attribute path.



15
16
17
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15

def path
  @path
end