Class: Bio::BaseSpace::VariantHeader
- Defined in:
- lib/basespace/model/variant_header.rb
Overview
Variant header model.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize ⇒ VariantHeader
constructor
Create a new VariantHeader instance.
-
#to_s ⇒ Object
Return the sample count as string.
Methods inherited from Model
#get_attr, #method_missing, #set_attr, #to_str
Constructor Details
#initialize ⇒ VariantHeader
Create a new VariantHeader instance.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/basespace/model/variant_header.rb', line 23 def initialize @swagger_types = { 'Metadata' => 'dict', 'Samples' => 'dict', 'Legends' => 'dict', } @attributes = { 'Metadata' => nil, # dict 'Samples' => nil, # dict 'Legends' => nil, # dict } 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 the sample count as string.
37 38 39 |
# File 'lib/basespace/model/variant_header.rb', line 37 def to_s return "VariantHeader: SampleCount=#{get_attr('Samples').length}" end |