Class: PeriodicTable::ApiResponse
- Inherits:
-
Object
- Object
- PeriodicTable::ApiResponse
- Defined in:
- lib/periodic_table/periodic_table_api.rb
Constant Summary collapse
- PROPERTIES =
[:atomic_weight, :symbol, :atomic_number, :element_name, :boiling_point, :ionisation_potential, :electro_negativity, :atomic_radius, :melting_point, :density]
Instance Method Summary collapse
-
#initialize(result) ⇒ ApiResponse
constructor
A new instance of ApiResponse.
Constructor Details
#initialize(result) ⇒ ApiResponse
Returns a new instance of ApiResponse.
36 37 38 |
# File 'lib/periodic_table/periodic_table_api.rb', line 36 def initialize(result) @xml = Nokogiri::XML.parse(result) end |