Class: Rafflesia::HomologyResultRelation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HomologyResultRelation
- Defined in:
- lib/rafflesia/homology_result_releases/homology_result_relation.rb
Constant Summary collapse
- HASH_ATTRS =
{ manifest: :manifest, object: :object, relation: :relation, row_count: :row_count, schema_hash: :schema_hash, schema_version: :schema_version }.freeze
Instance Attribute Summary collapse
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#object ⇒ Object
Returns the value of attribute object.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
Instance Method Summary collapse
-
#initialize(json) ⇒ HomologyResultRelation
constructor
A new instance of HomologyResultRelation.
Constructor Details
#initialize(json) ⇒ HomologyResultRelation
Returns a new instance of HomologyResultRelation.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @manifest = hash[:manifest] ? Rafflesia::ObjectRef.new(hash[:manifest]) : nil @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @relation = hash[:relation] @row_count = hash[:row_count] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] end |
Instance Attribute Details
#manifest ⇒ Object
Returns the value of attribute manifest.
17 18 19 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 17 def manifest @manifest end |
#object ⇒ Object
Returns the value of attribute object.
17 18 19 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 17 def object @object end |
#relation ⇒ Object
Returns the value of attribute relation.
17 18 19 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 17 def relation @relation end |
#row_count ⇒ Object
Returns the value of attribute row_count.
17 18 19 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 17 def row_count @row_count end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
17 18 19 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 17 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
17 18 19 |
# File 'lib/rafflesia/homology_result_releases/homology_result_relation.rb', line 17 def schema_version @schema_version end |