Class: Rafflesia::DatabaseJoinNeighborListData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinNeighborListData
- Defined in:
- lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ availability: :availability, catalog_release_count: :catalog_release_count, data: :data, database: :database, evidence_requirement: :evidence_requirement, has_more: :has_more, include_same_database: :include_same_database, matched_target_release_count: :matched_target_release_count, next_cursor: :next_cursor, object: :object, ontology_digest: :ontology_digest, ontology_version: :ontology_version, release: :release, release_digest: :release_digest, safety: :safety, safety_basis: :safety_basis, source_queryable_relation_count: :source_queryable_relation_count, source_relation: :source_relation, target_database: :target_database, url: :url }.freeze
Instance Attribute Summary collapse
-
#availability ⇒ Object
Returns the value of attribute availability.
-
#catalog_release_count ⇒ Object
Returns the value of attribute catalog_release_count.
-
#data ⇒ Object
Returns the value of attribute data.
-
#database ⇒ Object
Returns the value of attribute database.
-
#evidence_requirement ⇒ Object
Returns the value of attribute evidence_requirement.
-
#has_more ⇒ Object
Returns the value of attribute has_more.
-
#include_same_database ⇒ Object
Returns the value of attribute include_same_database.
-
#matched_target_release_count ⇒ Object
Returns the value of attribute matched_target_release_count.
-
#next_cursor ⇒ Object
Returns the value of attribute next_cursor.
-
#object ⇒ Object
Returns the value of attribute object.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#release ⇒ Object
Returns the value of attribute release.
-
#release_digest ⇒ Object
Returns the value of attribute release_digest.
-
#safety ⇒ Object
Returns the value of attribute safety.
-
#safety_basis ⇒ Object
Returns the value of attribute safety_basis.
-
#source_queryable_relation_count ⇒ Object
Returns the value of attribute source_queryable_relation_count.
-
#source_relation ⇒ Object
Returns the value of attribute source_relation.
-
#target_database ⇒ Object
Returns the value of attribute target_database.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinNeighborListData
constructor
A new instance of DatabaseJoinNeighborListData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinNeighborListData
Returns a new instance of DatabaseJoinNeighborListData.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @availability = hash[:availability] @catalog_release_count = hash[:catalog_release_count] @data = (hash[:data] || []).map { |item| item ? Rafflesia::DatabaseJoinNeighbor.new(item) : nil } @database = hash[:database] @evidence_requirement = hash[:evidence_requirement] @has_more = hash[:has_more] @include_same_database = hash[:include_same_database] @matched_target_release_count = hash[:matched_target_release_count] @next_cursor = hash[:next_cursor] @object = hash[:object] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @release = hash[:release] @release_digest = hash[:release_digest] @safety = hash[:safety] @safety_basis = hash[:safety_basis] @source_queryable_relation_count = hash[:source_queryable_relation_count] @source_relation = hash[:source_relation] @target_database = hash[:target_database] @url = hash[:url] end |
Instance Attribute Details
#availability ⇒ Object
Returns the value of attribute availability.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def availability @availability end |
#catalog_release_count ⇒ Object
Returns the value of attribute catalog_release_count.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def catalog_release_count @catalog_release_count end |
#data ⇒ Object
Returns the value of attribute data.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def data @data end |
#database ⇒ Object
Returns the value of attribute database.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def database @database end |
#evidence_requirement ⇒ Object
Returns the value of attribute evidence_requirement.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def evidence_requirement @evidence_requirement end |
#has_more ⇒ Object
Returns the value of attribute has_more.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def has_more @has_more end |
#include_same_database ⇒ Object
Returns the value of attribute include_same_database.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def include_same_database @include_same_database end |
#matched_target_release_count ⇒ Object
Returns the value of attribute matched_target_release_count.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def matched_target_release_count @matched_target_release_count end |
#next_cursor ⇒ Object
Returns the value of attribute next_cursor.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def next_cursor @next_cursor end |
#object ⇒ Object
Returns the value of attribute object.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def object @object end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def ontology_version @ontology_version end |
#release ⇒ Object
Returns the value of attribute release.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def release @release end |
#release_digest ⇒ Object
Returns the value of attribute release_digest.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def release_digest @release_digest end |
#safety ⇒ Object
Returns the value of attribute safety.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def safety @safety end |
#safety_basis ⇒ Object
Returns the value of attribute safety_basis.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def safety_basis @safety_basis end |
#source_queryable_relation_count ⇒ Object
Returns the value of attribute source_queryable_relation_count.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def source_queryable_relation_count @source_queryable_relation_count end |
#source_relation ⇒ Object
Returns the value of attribute source_relation.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def source_relation @source_relation end |
#target_database ⇒ Object
Returns the value of attribute target_database.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def target_database @target_database end |
#url ⇒ Object
Returns the value of attribute url.
31 32 33 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor_list_data.rb', line 31 def url @url end |