Class: Rafflesia::OntologyAnchorReadmissionRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyAnchorReadmissionRequest
- Defined in:
- lib/rafflesia/ontology/ontology_anchor_readmission_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ anchors: :anchors, base_catalog_digest: :base_catalog_digest, base_ontology_digest: :base_ontology_digest, change_id: :change_id }.freeze
Instance Attribute Summary collapse
-
#anchors ⇒ Object
Returns the value of attribute anchors.
-
#base_catalog_digest ⇒ Object
Returns the value of attribute base_catalog_digest.
-
#base_ontology_digest ⇒ Object
Returns the value of attribute base_ontology_digest.
-
#change_id ⇒ Object
Returns the value of attribute change_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyAnchorReadmissionRequest
constructor
A new instance of OntologyAnchorReadmissionRequest.
Constructor Details
#initialize(json) ⇒ OntologyAnchorReadmissionRequest
Returns a new instance of OntologyAnchorReadmissionRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/ontology/ontology_anchor_readmission_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @anchors = (hash[:anchors] || []).map { |item| item ? Rafflesia::OntologyReadmittedAnchorRequest.new(item) : nil } @base_catalog_digest = hash[:base_catalog_digest] @base_ontology_digest = hash[:base_ontology_digest] @change_id = hash[:change_id] end |
Instance Attribute Details
#anchors ⇒ Object
Returns the value of attribute anchors.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_anchor_readmission_request.rb', line 15 def anchors @anchors end |
#base_catalog_digest ⇒ Object
Returns the value of attribute base_catalog_digest.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_anchor_readmission_request.rb', line 15 def base_catalog_digest @base_catalog_digest end |
#base_ontology_digest ⇒ Object
Returns the value of attribute base_ontology_digest.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_anchor_readmission_request.rb', line 15 def base_ontology_digest @base_ontology_digest end |
#change_id ⇒ Object
Returns the value of attribute change_id.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_anchor_readmission_request.rb', line 15 def change_id @change_id end |