Module: RCAP::Info
- Defined in:
- lib/rcap/info.rb
Class Method Summary collapse
Class Method Details
.from_h(alert, info_hash) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/rcap/info.rb', line 3 def self.from_h(alert, info_hash) case alert.class::CAP_VERSION when CAP_1_0::Alert::CAP_VERSION CAP_1_0::Info.from_h(info_hash) when CAP_1_1::Alert::CAP_VERSION CAP_1_1::Info.from_h(info_hash) else CAP_1_2::Info.from_h(info_hash) end end |