Class: IngvQuake::BasicInfoEvent
- Inherits:
-
Struct
- Object
- Struct
- IngvQuake::BasicInfoEvent
- Defined in:
- lib/ingv_quake/models/basic_info_event.rb
Overview
The BasicInfoEvent struct represents a simplified event with essential information. Example:
#<struct IngvQuake::BasicInfoEvent
event_id="34898181",
time="2023-05-06T00:58:38.360000",
latitude="37.6962",
longitude="12.9447",
depth_km="11.2",
author="SURVEY-INGV",
catalog="",
contributor="",
contributor_id="",
mag_type="ML",
magnitude="1.8",
mag_author="--",
location="4 km W Montevago (AG)",
type="earthquake">
Instance Attribute Summary collapse
-
#author ⇒ String
The author of the event information.
-
#catalog ⇒ String
The catalog the event belongs to.
-
#contributor ⇒ String
The contributor of the event information.
-
#contributor_id ⇒ String
The unique ID of the contributor.
-
#depth_km ⇒ String
The depth of the event in kilometers.
-
#event_id ⇒ String
The unique ID of the event.
-
#intensity_map ⇒ String
The intensity map of the event.
-
#latitude ⇒ String
The latitude of the event.
-
#location ⇒ String
The location of the event.
-
#longitude ⇒ String
The longitude of the event.
-
#mag_author ⇒ String
The author of the event’s magnitude information.
-
#mag_type ⇒ String
The type of magnitude for the event.
-
#magnitude ⇒ String
The magnitude of the event.
-
#pga_map ⇒ String
The pga map of the event.
-
#pgv_map ⇒ String
The pgv map of the event.
-
#time ⇒ String
The date and time of the event.
-
#type ⇒ String
The type of the event.
Instance Attribute Details
#author ⇒ String
Returns The author of the event information.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#catalog ⇒ String
Returns The catalog the event belongs to.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#contributor ⇒ String
Returns The contributor of the event information.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#contributor_id ⇒ String
Returns The unique ID of the contributor.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#depth_km ⇒ String
Returns The depth of the event in kilometers.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#event_id ⇒ String
Returns The unique ID of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#intensity_map ⇒ String
Returns The intensity map of the event. <b>This is a custom attribute.<b>.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#latitude ⇒ String
Returns The latitude of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#location ⇒ String
Returns The location of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#longitude ⇒ String
Returns The longitude of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#mag_author ⇒ String
Returns The author of the event’s magnitude information.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#mag_type ⇒ String
Returns The type of magnitude for the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#magnitude ⇒ String
Returns The magnitude of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#pga_map ⇒ String
Returns The pga map of the event. <b>This is a custom attribute.<b>.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#pgv_map ⇒ String
Returns The pgv map of the event. <b>This is a custom attribute.<b>.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#time ⇒ String
Returns The date and time of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |
#type ⇒ String
Returns The type of the event.
56 57 58 59 60 |
# File 'lib/ingv_quake/models/basic_info_event.rb', line 56 BasicInfoEvent = Struct.new( :event_id, :time, :latitude, :longitude, :depth_km, :author, :catalog, :contributor, :contributor_id, :mag_type, :magnitude, :mag_author, :location, :type, :intensity_map, :pga_map, :pgv_map, keyword_init: true ) |