Sha256: ad0a025c18c00fe2293c8273b0ac4936807074319863d05c5150d707db11f79d

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

# =EMOBILE携帯電話

module Jpmobile::Mobile
  # ==EMOBILE携帯電話
  class Emobile < AbstractMobile
    autoload :IP_ADDRESSES, 'jpmobile/mobile/z_ip_addresses_emobile'

    USER_AGENT_REGEXP = %r{^emobile/|^Mozilla/5.0 \(H11T; like Gecko; OpenBrowser\) NetFront/3.4$|^Mozilla/4.0 \(compatible; MSIE 6.0; Windows CE; IEMobile 7.7\) S11HT$}
    # EMnet対応端末から通知されるユニークなユーザIDを取得する。
    def em_uid
      @request.env['HTTP_X_EM_UID']
    end
    alias :ident_subscriber :em_uid
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jpmobile-0.0.3 lib/jpmobile/mobile/emobile.rb