Class: Rafflesia::BlastDbArtifactState
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastDbArtifactState
- Defined in:
- lib/rafflesia/sequences/blast_db_artifact_state.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact: :artifact, error: :error, exists: :exists, is_local: :is_local, local_path: :local_path, verified: :verified }.freeze
Instance Attribute Summary collapse
-
#artifact ⇒ Object
Returns the value of attribute artifact.
-
#error ⇒ Object
Returns the value of attribute error.
-
#exists ⇒ Object
Returns the value of attribute exists.
-
#is_local ⇒ Object
Returns the value of attribute is_local.
-
#local_path ⇒ Object
Returns the value of attribute local_path.
-
#verified ⇒ Object
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastDbArtifactState
constructor
A new instance of BlastDbArtifactState.
Constructor Details
#initialize(json) ⇒ BlastDbArtifactState
Returns a new instance of BlastDbArtifactState.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @artifact = hash[:artifact] ? Rafflesia::BlastDbArtifact.new(hash[:artifact]) : nil @error = hash[:error] @exists = hash[:exists] @is_local = hash[:is_local] @local_path = hash[:local_path] @verified = hash[:verified] end |
Instance Attribute Details
#artifact ⇒ Object
Returns the value of attribute artifact.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 17 def artifact @artifact end |
#error ⇒ Object
Returns the value of attribute error.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 17 def error @error end |
#exists ⇒ Object
Returns the value of attribute exists.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 17 def exists @exists end |
#is_local ⇒ Object
Returns the value of attribute is_local.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 17 def is_local @is_local end |
#local_path ⇒ Object
Returns the value of attribute local_path.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 17 def local_path @local_path end |
#verified ⇒ Object
Returns the value of attribute verified.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_artifact_state.rb', line 17 def verified @verified end |