Class: Rafflesia::BlastDbMaterializedFile

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/blast_db_materialized_file.rb

Constant Summary collapse

HASH_ATTRS =
{
  cache_hit: :cache_hit,
  file_name: :file_name,
  lock_wait_ms: :lock_wait_ms,
  path: :path,
  role: :role,
  sha256: :sha_256,
  size_bytes: :size_bytes
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BlastDbMaterializedFile

Returns a new instance of BlastDbMaterializedFile.



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 27

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @cache_hit = hash[:cache_hit]
  @file_name = hash[:file_name]
  @lock_wait_ms = hash[:lock_wait_ms]
  @path = hash[:path]
  @role = hash[:role]
  @sha_256 = hash[:sha256]
  @size_bytes = hash[:size_bytes]
end

Instance Attribute Details

#cache_hitObject

Returns the value of attribute cache_hit.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def cache_hit
  @cache_hit
end

#file_nameObject

Returns the value of attribute file_name.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def file_name
  @file_name
end

#lock_wait_msObject

Returns the value of attribute lock_wait_ms.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def lock_wait_ms
  @lock_wait_ms
end

#pathObject

Returns the value of attribute path.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def path
  @path
end

#roleObject

Returns the value of attribute role.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def role
  @role
end

#sha_256Object

Returns the value of attribute sha_256.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



18
19
20
# File 'lib/rafflesia/sequences/blast_db_materialized_file.rb', line 18

def size_bytes
  @size_bytes
end