Class: Jpmobile::Mobile::Emobile

Inherits:
AbstractMobile show all
Defined in:
lib/jpmobile/mobile/emobile.rb

Overview

EMOBILE携帯電話

Constant Summary collapse

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$}
MAIL_ADDRESS_REGEXP =

対応するメールアドレスの正規表現

/[email protected]\.ne\.jp/

Constants inherited from AbstractMobile

AbstractMobile::MAIL_CHARSET, AbstractMobile::MAIL_CONTENT_TRANSFER_ENCODING

Instance Method Summary collapse

Methods inherited from AbstractMobile

add_user_agent_regexp, #apply_filter?, #apply_params_filter?, carrier, check_carrier, #content_transfer_encoding, #decode_transfer_encoding, #decoratable?, #decorated=, #decorated?, #default_charset, #display, #ident, #ident_device, #initialize, ip_address_class, #mail_charset, #mail_variants, #position, #require_related_part?, #smart_phone?, #supports_cookie?, #tablet?, #to_external, #to_internal, #to_mail_body, #to_mail_body_encoded?, #to_mail_encoding, #to_mail_internal, #to_mail_subject, #to_mail_subject_encoded?, user_agent_regexp, #utf8_to_mail_encode, #valid_ip?, valid_ip?, #variants

Constructor Details

This class inherits a constructor from Jpmobile::Mobile::AbstractMobile

Instance Method Details

#em_uidObject Also known as: ident_subscriber

EMnet対応端末から通知されるユニークなユーザIDを取得する。


11
12
13
# File 'lib/jpmobile/mobile/emobile.rb', line 11

def em_uid
  @request.env['HTTP_X_EM_UID']
end