Class: Rafflesia::VariantNormalizeRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::VariantNormalizeRequest
- Defined in:
- lib/rafflesia/genomes/variant_normalize_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ assembly: :assembly, database: :database, output_format: :output_format, output_relation: :output_relation, partition_by: :partition_by, path: :path, preview_limit: :preview_limit, relation: :relation, release: :release, sort_by: :sort_by }.freeze
Instance Attribute Summary collapse
-
#assembly ⇒ Object
Returns the value of attribute assembly.
-
#database ⇒ Object
Returns the value of attribute database.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#output_relation ⇒ Object
Returns the value of attribute output_relation.
-
#partition_by ⇒ Object
Returns the value of attribute partition_by.
-
#path ⇒ Object
Returns the value of attribute path.
-
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#release ⇒ Object
Returns the value of attribute release.
-
#sort_by ⇒ Object
Returns the value of attribute sort_by.
Instance Method Summary collapse
-
#initialize(json) ⇒ VariantNormalizeRequest
constructor
A new instance of VariantNormalizeRequest.
Constructor Details
#initialize(json) ⇒ VariantNormalizeRequest
Returns a new instance of VariantNormalizeRequest.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @assembly = hash[:assembly] @database = hash[:database] @output_format = hash[:output_format] @output_relation = hash[:output_relation] @partition_by = (hash[:partition_by] || []) @path = hash[:path] @preview_limit = hash[:preview_limit] @relation = hash[:relation] @release = hash[:release] @sort_by = (hash[:sort_by] || []) end |
Instance Attribute Details
#assembly ⇒ Object
Returns the value of attribute assembly.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def assembly @assembly end |
#database ⇒ Object
Returns the value of attribute database.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def database @database end |
#output_format ⇒ Object
Returns the value of attribute output_format.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def output_format @output_format end |
#output_relation ⇒ Object
Returns the value of attribute output_relation.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def output_relation @output_relation end |
#partition_by ⇒ Object
Returns the value of attribute partition_by.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def partition_by @partition_by end |
#path ⇒ Object
Returns the value of attribute path.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def path @path end |
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def preview_limit @preview_limit end |
#relation ⇒ Object
Returns the value of attribute relation.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def release @release end |
#sort_by ⇒ Object
Returns the value of attribute sort_by.
21 22 23 |
# File 'lib/rafflesia/genomes/variant_normalize_request.rb', line 21 def sort_by @sort_by end |