Class: Jpmobile::Mobile::SmartPhone

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

Direct Known Subclasses

Android, BlackBerry, Iphone, Tablet, WindowsPhone

Constant Summary

Constant Summary

Constants inherited from AbstractMobile

AbstractMobile::MAIL_ADDRESS_REGEXP, AbstractMobile::MAIL_CHARSET, AbstractMobile::MAIL_CONTENT_TRANSFER_ENCODING, AbstractMobile::USER_AGENT_REGEXP

Instance Method Summary (collapse)

Methods inherited from AbstractMobile

add_user_agent_regexp, carrier, check_carrier, #content_transfer_encoding, #decode_transfer_encoding, #decoratable?, #decorated=, #decorated?, #default_charset, #display, #ident, #ident_device, #ident_subscriber, #initialize, ip_address_class, #mail_charset, #mail_variants, #position, #require_related_part?, #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?, #variants

Constructor Details

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

Instance Method Details

- (Boolean) apply_filter?

Jpmobile::Rack::Filter は適用しない



22
23
24
# File 'lib/jpmobile/mobile/smart_phone.rb', line 22

def apply_filter?
  false
end

- (Boolean) apply_params_filter?

Jpmobile::Rack::ParamsFilter は適用しない



27
28
29
# File 'lib/jpmobile/mobile/smart_phone.rb', line 27

def apply_params_filter?
  false
end

- (Boolean) smart_phone?

smartphone なので true



17
18
19
# File 'lib/jpmobile/mobile/smart_phone.rb', line 17

def smart_phone?
  true
end

- (Boolean) supports_cookie?

cookie は有効と見なす



12
13
14
# File 'lib/jpmobile/mobile/smart_phone.rb', line 12

def supports_cookie?
  true
end

- (Boolean) valid_ip?

無効化



7
8
9
# File 'lib/jpmobile/mobile/smart_phone.rb', line 7

def valid_ip?
  false
end