Class: Rafflesia::DatabaseJoinNeighbor
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinNeighbor
- Defined in:
- lib/rafflesia/database_join_neighbors/database_join_neighbor.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, is_available: :is_available, join: :join, object: :object, target_database: :target_database, target_queryable_relation_count: :target_queryable_relation_count, target_release: :target_release, target_release_digest: :target_release_digest, unavailable_reasons: :unavailable_reasons }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_available ⇒ Object
Returns the value of attribute is_available.
-
#join ⇒ Object
Returns the value of attribute join.
-
#object ⇒ Object
Returns the value of attribute object.
-
#target_database ⇒ Object
Returns the value of attribute target_database.
-
#target_queryable_relation_count ⇒ Object
Returns the value of attribute target_queryable_relation_count.
-
#target_release ⇒ Object
Returns the value of attribute target_release.
-
#target_release_digest ⇒ Object
Returns the value of attribute target_release_digest.
-
#unavailable_reasons ⇒ Object
Returns the value of attribute unavailable_reasons.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinNeighbor
constructor
A new instance of DatabaseJoinNeighbor.
Constructor Details
#initialize(json) ⇒ DatabaseJoinNeighbor
Returns a new instance of DatabaseJoinNeighbor.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @id = hash[:id] @is_available = hash[:is_available] @join = hash[:join] ? Rafflesia::OntologyJoinStep.new(hash[:join]) : nil @object = hash[:object] @target_database = hash[:target_database] @target_queryable_relation_count = hash[:target_queryable_relation_count] @target_release = hash[:target_release] @target_release_digest = hash[:target_release_digest] @unavailable_reasons = (hash[:unavailable_reasons] || []) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def id @id end |
#is_available ⇒ Object
Returns the value of attribute is_available.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def is_available @is_available end |
#join ⇒ Object
Returns the value of attribute join.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def join @join end |
#object ⇒ Object
Returns the value of attribute object.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def object @object end |
#target_database ⇒ Object
Returns the value of attribute target_database.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def target_database @target_database end |
#target_queryable_relation_count ⇒ Object
Returns the value of attribute target_queryable_relation_count.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def target_queryable_relation_count @target_queryable_relation_count end |
#target_release ⇒ Object
Returns the value of attribute target_release.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def target_release @target_release end |
#target_release_digest ⇒ Object
Returns the value of attribute target_release_digest.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def target_release_digest @target_release_digest end |
#unavailable_reasons ⇒ Object
Returns the value of attribute unavailable_reasons.
20 21 22 |
# File 'lib/rafflesia/database_join_neighbors/database_join_neighbor.rb', line 20 def unavailable_reasons @unavailable_reasons end |