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

Constants inherited from AbstractMobile

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

Instance Attribute Summary

Attributes inherited from AbstractMobile

#decorated

Instance Method Summary collapse

Methods inherited from AbstractMobile

add_user_agent_regexp, carrier, check_carrier, #content_transfer_encoding, #decode_transfer_encoding, #decoratable?, #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

#apply_filter?Boolean

Jpmobile::Filter は適用しない

Returns:

  • (Boolean)


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

def apply_filter?
  false
end

#apply_params_filter?Boolean

Jpmobile::ParamsFilter は適用しない

Returns:

  • (Boolean)


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

def apply_params_filter?
  false
end

#smart_phone?Boolean

smartphone なので true

Returns:

  • (Boolean)


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

def smart_phone?
  true
end

#supports_cookie?Boolean

cookie は有効と見なす

Returns:

  • (Boolean)


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

def supports_cookie?
  true
end

#valid_ip?Boolean

無効化

Returns:

  • (Boolean)


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

def valid_ip?
  false
end