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

#author ⇒ String

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
)

#catalog ⇒ String

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
)

#contributor ⇒ String

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_id ⇒ String

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_km ⇒ String

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_id ⇒ String

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_map ⇒ String

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

Returns:

  • (String) —

    The intensity map of the event. This is a custom attribute.



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.

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
)

#location ⇒ String

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
)

#longitude ⇒ String

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_author ⇒ String

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_type ⇒ String

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
)

#magnitude ⇒ String

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_map ⇒ String

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

Returns:

  • (String) —

    The pga map of the event. This is a custom attribute.



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. This is a custom attribute..

Returns:

  • (String) —

    The pgv map of the event. This is a custom attribute.



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.

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
)

#type ⇒ String

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
)