Class: PeriodicTable::ApiResponse

Inherits:
Object
  • Object
show all
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

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