Class: Apis::Earthquake

Inherits:
Object
  • Object
show all
Defined in:
lib/apis/endpoints/earthquake.rb

Overview

Class to fetch earthquake

Instance Method Summary collapse

Instance Method Details

#earthquakeFaraday::Response

Get earthquake monitoring data for the last 48 hours.

Returns:

  • (Faraday::Response)

    Api result.



9
10
11
# File 'lib/apis/endpoints/earthquake.rb', line 9

def earthquake
  Apis.client.get('/earthquake/is')
end