Class: PubChemAPI::PathwaySummary
- Inherits:
-
APIResponse
- Object
- APIResponse
- PubChemAPI::PathwaySummary
- Defined in:
- lib/pubchem_api.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pathway_accession ⇒ Object
readonly
Returns the value of attribute pathway_accession.
-
#source_name ⇒ Object
readonly
Returns the value of attribute source_name.
-
#taxonomy_id ⇒ Object
readonly
Returns the value of attribute taxonomy_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ PathwaySummary
constructor
A new instance of PathwaySummary.
Constructor Details
#initialize(data) ⇒ PathwaySummary
Returns a new instance of PathwaySummary.
105 106 107 108 109 110 111 112 113 114 |
# File 'lib/pubchem_api.rb', line 105 def initialize(data) super(data) pathway = data['Pathway'].first @pathway_accession = pathway['PathwayId'] @source_name = pathway['SourceName'] @name = pathway['Name'] @category = pathway['Category'] @description = pathway['Description'] @taxonomy_id = pathway['TaxId'] end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
103 104 105 |
# File 'lib/pubchem_api.rb', line 103 def category @category end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
103 104 105 |
# File 'lib/pubchem_api.rb', line 103 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
103 104 105 |
# File 'lib/pubchem_api.rb', line 103 def name @name end |
#pathway_accession ⇒ Object (readonly)
Returns the value of attribute pathway_accession.
103 104 105 |
# File 'lib/pubchem_api.rb', line 103 def pathway_accession @pathway_accession end |
#source_name ⇒ Object (readonly)
Returns the value of attribute source_name.
103 104 105 |
# File 'lib/pubchem_api.rb', line 103 def source_name @source_name end |
#taxonomy_id ⇒ Object (readonly)
Returns the value of attribute taxonomy_id.
103 104 105 |
# File 'lib/pubchem_api.rb', line 103 def taxonomy_id @taxonomy_id end |