Class: IngvQuake::ShakeMap
- Inherits:
-
Object
- Object
- IngvQuake::ShakeMap
- Defined in:
- lib/ingv_quake/models/shake_map.rb
Overview
The ShakeMap class contains the map urls related to the Event.
Instance Attribute Summary collapse
-
#intensity_map ⇒ String
readonly
Intensity map of the Event.
-
#pga_map ⇒ String
readonly
PGA map of Event.
-
#pgv_map ⇒ String
readonly
PGV map of Event.
Instance Method Summary collapse
-
#initialize(data) ⇒ ShakeMap
constructor
A new instance of ShakeMap.
Constructor Details
#initialize(data) ⇒ ShakeMap
Returns a new instance of ShakeMap.
12 13 14 15 16 |
# File 'lib/ingv_quake/models/shake_map.rb', line 12 def initialize(data) @intensity_map = data.fetch('intensity_map', nil) @pga_map = data.fetch('pga_map', nil) @pgv_map = data.fetch('pgv_map', nil) end |
Instance Attribute Details
#intensity_map ⇒ String (readonly)
Intensity map of the Event.
9 10 11 |
# File 'lib/ingv_quake/models/shake_map.rb', line 9 def intensity_map @intensity_map end |
#pga_map ⇒ String (readonly)
PGA map of Event.
9 10 11 |
# File 'lib/ingv_quake/models/shake_map.rb', line 9 def pga_map @pga_map end |
#pgv_map ⇒ String (readonly)
PGV map of Event.
9 10 11 |
# File 'lib/ingv_quake/models/shake_map.rb', line 9 def pgv_map @pgv_map end |