Class: Rafflesia::OntologyDiffChange
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyDiffChange
- 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
-
#after ⇒ Object
Returns the value of attribute after.
-
#before ⇒ Object
Returns the value of attribute before.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyDiffChange
constructor
A new instance of OntologyDiffChange.
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
#after ⇒ Object
Returns the value of attribute after.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15 def after @after end |
#before ⇒ Object
Returns the value of attribute before.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15 def before @before end |
#kind ⇒ Object
Returns the value of attribute kind.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15 def kind @kind end |
#path ⇒ Object
Returns the value of attribute path.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_diff_change.rb', line 15 def path @path end |