Class: Jpmobile::Mobile::Emobile
- Inherits:
-
AbstractMobile
- Object
- AbstractMobile
- Jpmobile::Mobile::Emobile
- 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$}.freeze
- MAIL_ADDRESS_REGEXP =
対応するメールアドレスの正規表現
/.+@emnet\.ne\.jp/.freeze
Constants inherited from AbstractMobile
AbstractMobile::MAIL_CHARSET, AbstractMobile::MAIL_CONTENT_TRANSFER_ENCODING
Instance Attribute Summary
Attributes inherited from AbstractMobile
Instance Method Summary collapse
-
#em_uid ⇒ Object
(also: #ident_subscriber)
EMnet対応端末から通知されるユニークなユーザIDを取得する。.
Methods inherited from AbstractMobile
add_user_agent_regexp, #apply_filter?, #apply_params_filter?, carrier, check_carrier, #content_transfer_encoding, #decode_transfer_encoding, #decoratable?, #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_uid ⇒ Object Also known as: ident_subscriber
EMnet対応端末から通知されるユニークなユーザIDを取得する。
10 11 12 |
# File 'lib/jpmobile/mobile/emobile.rb', line 10 def em_uid @request.env['HTTP_X_EM_UID'] end |