Sha256: 2a5843cc3eab6da4a6ec8d5ee3d569eff94e83e7ca93ffe496a132ae3da93da5

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

module RCAP
  module Info
    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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rcap-2.7.0 lib/rcap/info.rb
rcap-2.6.0 lib/rcap/info.rb
rcap-2.5.1 lib/rcap/info.rb
rcap-2.5.0 lib/rcap/info.rb