Class: Rafflesia::BlastDbEvictRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastDbEvictRequest
- 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
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#target_dir ⇒ Object
Returns the value of attribute target_dir.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastDbEvictRequest
constructor
A new instance of BlastDbEvictRequest.
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_run ⇒ Object
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_path ⇒ Object
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_bytes ⇒ Object
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 |
#policy ⇒ Object
Returns the value of attribute policy.
17 18 19 |
# File 'lib/rafflesia/sequences/blast_db_evict_request.rb', line 17 def policy @policy end |
#ref ⇒ Object
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_dir ⇒ Object
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 |