Class: Rafflesia::OntologyValidationRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  snapshot: :snapshot
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyValidationRequest

Returns a new instance of OntologyValidationRequest.



14
15
16
17
18
# File 'lib/rafflesia/ontology/ontology_validation_request.rb', line 14

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @snapshot = hash[:snapshot] ? Rafflesia::OntologySnapshotData.new(hash[:snapshot]) : nil
end

Instance Attribute Details

#snapshotObject

Returns the value of attribute snapshot.



12
13
14
# File 'lib/rafflesia/ontology/ontology_validation_request.rb', line 12

def snapshot
  @snapshot
end