Class: PubChemAPI::APIResponse
- Inherits:
-
Object
- Object
- PubChemAPI::APIResponse
- Defined in:
- lib/pubchem_api.rb
Overview
Base class for API responses
Direct Known Subclasses
AssayRecord, CompoundRecord, GeneSummary, PathwaySummary, ProteinSummary, SubstanceRecord, TaxonomySummary
Instance Method Summary collapse
-
#initialize(data) ⇒ APIResponse
constructor
A new instance of APIResponse.
Constructor Details
#initialize(data) ⇒ APIResponse
Returns a new instance of APIResponse.
17 18 19 |
# File 'lib/pubchem_api.rb', line 17 def initialize(data) @data = data end |