Class: Rafflesia::VariantQueryRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::VariantQueryRequest
- Defined in:
- lib/rafflesia/genomes/variant_query_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ chrom: :chrom, end: :end, file: :file, region: :region, start: :start }.freeze
Instance Attribute Summary collapse
-
#chrom ⇒ Object
Returns the value of attribute chrom.
-
#end ⇒ Object
Returns the value of attribute end.
-
#file ⇒ Object
Returns the value of attribute file.
-
#region ⇒ Object
Returns the value of attribute region.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(json) ⇒ VariantQueryRequest
constructor
A new instance of VariantQueryRequest.
Constructor Details
#initialize(json) ⇒ VariantQueryRequest
Returns a new instance of VariantQueryRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @chrom = hash[:chrom] @end = hash[:end] @file = hash[:file] @region = hash[:region] @start = hash[:start] end |
Instance Attribute Details
#chrom ⇒ Object
Returns the value of attribute chrom.
16 17 18 |
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16 def chrom @chrom end |
#end ⇒ Object
Returns the value of attribute end.
16 17 18 |
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16 def end @end end |
#file ⇒ Object
Returns the value of attribute file.
16 17 18 |
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16 def file @file end |
#region ⇒ Object
Returns the value of attribute region.
16 17 18 |
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16 def region @region end |
#start ⇒ Object
Returns the value of attribute start.
16 17 18 |
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16 def start @start end |