Class: Bio::BaseSpace::CoverageMetadata
- Defined in:
- lib/basespace/model/coverage_metadata.rb
Overview
Models coverage metadata.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize ⇒ CoverageMetadata
constructor
Create a new CoeverageMetadata instance.
-
#to_s ⇒ Object
Return a string denoting the maximum coverage and coverage granularity.
Methods inherited from Model
#get_attr, #method_missing, #set_attr, #to_str
Constructor Details
#initialize ⇒ CoverageMetadata
Create a new CoeverageMetadata instance.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/basespace/model/coverage_metadata.rb', line 23 def initialize @swagger_types = { 'MaxCoverage' => 'int', 'CoverageGranularity' => 'int', } @attributes = { 'MaxCoverage' => nil, # int Maximum coverage value of any base, on a per-base level, for the entire chromosome. Useful for scaling 'CoverageGranularity' => nil, # int Supported granularity of queries } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bio::BaseSpace::Model
Instance Method Details
#to_s ⇒ Object
Return a string denoting the maximum coverage and coverage granularity.
35 36 37 |
# File 'lib/basespace/model/coverage_metadata.rb', line 35 def to_s return "CoverageMeta: max=#{get_attr('MaxCoverage')} gran=#{get_attr('CoverageGranularity')}" end |