Class: PubChemAPI::APIResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/pubchem_api.rb

Overview

Base class for API responses

Instance Method Summary collapse

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