Sha256: 1c7d16128f8e5b5131366c31aa0a3cc579860621c54e029158da6ff6018a78b1

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
rcap-2.7.4 lib/rcap/info.rb
rcap-2.7.3 lib/rcap/info.rb