Class: IngvQuake::BasicInfoEvent

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

Instance Attribute Details

#authorString

Returns The author of the event information.

Returns:

  • (String)

    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
)

#catalogString

Returns The catalog the event belongs to.

Returns:

  • (String)

    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
)

#contributorString

Returns The contributor of the event information.

Returns:

  • (String)

    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_idString

Returns The unique ID of the contributor.

Returns:

  • (String)

    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_kmString

Returns The depth of the event in kilometers.

Returns:

  • (String)

    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_idString

Returns The unique ID of the event.

Returns:

  • (String)

    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_mapString

Returns The intensity map of the event. <b>This is a custom attribute.<b>.

Returns:

  • (String)

    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
)

#latitudeString

Returns The latitude of the event.

Returns:

  • (String)

    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
)

#locationString

Returns The location of the event.

Returns:

  • (String)

    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
)

#longitudeString

Returns The longitude of the event.

Returns:

  • (String)

    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_authorString

Returns The author of the event’s magnitude information.

Returns:

  • (String)

    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_typeString

Returns The type of magnitude for the event.

Returns:

  • (String)

    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
)

#magnitudeString

Returns The magnitude of the event.

Returns:

  • (String)

    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_mapString

Returns The pga map of the event. <b>This is a custom attribute.<b>.

Returns:

  • (String)

    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_mapString

Returns The pgv map of the event. <b>This is a custom attribute.<b>.

Returns:

  • (String)

    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
)

#timeString

Returns The date and time of the event.

Returns:

  • (String)

    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
)

#typeString

Returns The type of the event.

Returns:

  • (String)

    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
)