Class: Rafflesia::VariantQueryRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#chromObject

Returns the value of attribute chrom.



16
17
18
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16

def chrom
  @chrom
end

#endObject

Returns the value of attribute end.



16
17
18
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16

def end
  @end
end

#fileObject

Returns the value of attribute file.



16
17
18
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16

def file
  @file
end

#regionObject

Returns the value of attribute region.



16
17
18
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16

def region
  @region
end

#startObject

Returns the value of attribute start.



16
17
18
# File 'lib/rafflesia/genomes/variant_query_request.rb', line 16

def start
  @start
end