Class: Rafflesia::BlastDbEvictRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  dry_run: :dry_run,
  manifest_path: :manifest_path,
  max_bytes: :max_bytes,
  policy: :policy,
  ref: :ref,
  target_dir: :target_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BlastDbEvictRequest

Returns a new instance of BlastDbEvictRequest.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @dry_run = hash[:dry_run]
  @manifest_path = hash[:manifest_path]
  @max_bytes = hash[:max_bytes]
  @policy = hash[:policy] ? Rafflesia::CacheEvictionPolicy.new(hash[:policy]) : nil
  @ref = hash[:ref]
  @target_dir = hash[:target_dir]
end

Instance Attribute Details

#dry_runObject

Returns the value of attribute dry_run.



17
18
19
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17

def dry_run
  @dry_run
end

#manifest_pathObject

Returns the value of attribute manifest_path.



17
18
19
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17

def manifest_path
  @manifest_path
end

#max_bytesObject

Returns the value of attribute max_bytes.



17
18
19
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17

def max_bytes
  @max_bytes
end

#policyObject

Returns the value of attribute policy.



17
18
19
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17

def policy
  @policy
end

#refObject

Returns the value of attribute ref.



17
18
19
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17

def ref
  @ref
end

#target_dirObject

Returns the value of attribute target_dir.



17
18
19
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17

def target_dir
  @target_dir
end