Sha256: fbab733a05339418fe33b5172f84601c2fb2dc061d530dfb3a117d2822d8556d

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 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.4.1 lib/rcap/info.rb
rcap-2.4.0 lib/rcap/info.rb
rcap-2.3.0 lib/rcap/info.rb
rcap-2.2.1 lib/rcap/info.rb