Class: Genomelink::Report
Overview
Report class to represent the reports API
Instance Attribute Summary collapse
-
#phenotype ⇒ Object
Returns the value of attribute phenotype.
-
#population ⇒ Object
Returns the value of attribute population.
-
#scores ⇒ Object
Returns the value of attribute scores.
-
#summary ⇒ Object
Returns the value of attribute summary.
Class Method Summary collapse
-
.fetch(trait, token) ⇒ Report
Method to get the report for a given trait.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Genomelink::Base
Instance Attribute Details
#phenotype ⇒ Object
Returns the value of attribute phenotype.
7 8 9 |
# File 'lib/genomelink/reports.rb', line 7 def phenotype @phenotype end |
#population ⇒ Object
Returns the value of attribute population.
7 8 9 |
# File 'lib/genomelink/reports.rb', line 7 def population @population end |
#scores ⇒ Object
Returns the value of attribute scores.
7 8 9 |
# File 'lib/genomelink/reports.rb', line 7 def scores @scores end |
#summary ⇒ Object
Returns the value of attribute summary.
7 8 9 |
# File 'lib/genomelink/reports.rb', line 7 def summary @summary end |
Class Method Details
.fetch(trait, token) ⇒ Report
Method to get the report for a given trait.
14 15 16 |
# File 'lib/genomelink/reports.rb', line 14 def fetch(trait, token) new get(path_to_trait(trait), token) end |