Class: Rafflesia::OntologyConnectivityFilters

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

Constant Summary collapse

HASH_ATTRS =
{
  classification: :classification,
  domain: :domain,
  is_isolated: :is_isolated
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyConnectivityFilters

Returns a new instance of OntologyConnectivityFilters.



19
20
21
22
23
24
25
# File 'lib/rafflesia/ontology/ontology_connectivity_filters.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @classification = hash[:classification]
  @domain = hash[:domain]
  @is_isolated = hash[:is_isolated]
end

Instance Attribute Details

#classificationObject

Returns the value of attribute classification.



14
15
16
# File 'lib/rafflesia/ontology/ontology_connectivity_filters.rb', line 14

def classification
  @classification
end

#domainObject

Returns the value of attribute domain.



14
15
16
# File 'lib/rafflesia/ontology/ontology_connectivity_filters.rb', line 14

def domain
  @domain
end

#is_isolatedObject

Returns the value of attribute is_isolated.



14
15
16
# File 'lib/rafflesia/ontology/ontology_connectivity_filters.rb', line 14

def is_isolated
  @is_isolated
end