jpmobile 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README +8 -5
- data/Rakefile +6 -7
- data/lib/jpmobile.rb +12 -2
- data/lib/jpmobile/email.rb +19 -0
- data/lib/jpmobile/filter.rb +1 -15
- data/lib/jpmobile/helpers.rb +76 -34
- data/lib/jpmobile/hook_action_controller.rb +1 -0
- data/lib/jpmobile/hook_action_view.rb +79 -28
- data/lib/jpmobile/mobile/abstract_mobile.rb +13 -1
- data/lib/jpmobile/mobile/au.rb +2 -0
- data/lib/jpmobile/mobile/docomo.rb +3 -1
- data/lib/jpmobile/mobile/emobile.rb +2 -0
- data/lib/jpmobile/mobile/softbank.rb +7 -1
- data/lib/jpmobile/mobile/willcom.rb +4 -0
- data/lib/jpmobile/mobile/z_display_info_docomo.rb +85 -2
- data/lib/jpmobile/mobile/z_ip_addresses_au.rb +40 -25
- data/lib/jpmobile/mobile/z_ip_addresses_docomo.rb +3 -1
- data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +97 -76
- data/lib/jpmobile/position.rb +8 -2
- data/lib/jpmobile/request_with_mobile.rb +1 -1
- data/lib/jpmobile/util.rb +21 -0
- data/lib/jpmobile/version.rb +1 -1
- data/test/au_test.rb +1 -1
- data/tools/update_display_info_docomo.rb +1 -0
- data/tools/update_ip_addresses_willcom.rb +2 -1
- metadata +36 -82
- data/doc/classes/ActionController.html +0 -120
- data/doc/classes/ActionController/AbstractRequest.html +0 -118
- data/doc/classes/ActionController/CgiRequest.html +0 -160
- data/doc/classes/ActionView.html +0 -101
- data/doc/classes/DatumConv.html +0 -324
- data/doc/classes/Jpmobile/Display.html +0 -333
- data/doc/classes/Jpmobile/Emoticon.html +0 -467
- data/doc/classes/Jpmobile/Filter.html +0 -120
- data/doc/classes/Jpmobile/Filter/ApplyOnlyForMobile.html +0 -172
- data/doc/classes/Jpmobile/Filter/Base.html +0 -269
- data/doc/classes/Jpmobile/Filter/Emoticon.html +0 -118
- data/doc/classes/Jpmobile/Filter/Emoticon/Inner.html +0 -184
- data/doc/classes/Jpmobile/Filter/Emoticon/Outer.html +0 -207
- data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
- data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -126
- data/doc/classes/Jpmobile/Filter/Sjis.html +0 -271
- data/doc/classes/Jpmobile/Helpers.html +0 -588
- data/doc/classes/Jpmobile/Mobile.html +0 -150
- data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -389
- data/doc/classes/Jpmobile/Mobile/Au.html +0 -420
- data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
- data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -411
- data/doc/classes/Jpmobile/Mobile/Emobile.html +0 -183
- data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
- data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -344
- data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
- data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -211
- data/doc/classes/Jpmobile/Position.html +0 -384
- data/doc/classes/Jpmobile/RequestWithMobile.html +0 -263
- data/doc/created.rid +0 -1
- data/doc/files/CHANGELOG.html +0 -110
- data/doc/files/README.html +0 -455
- data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
- data/doc/files/lib/jpmobile/emoticon/au_rb.html +0 -124
- data/doc/files/lib/jpmobile/emoticon/conversion_table_rb.html +0 -124
- data/doc/files/lib/jpmobile/emoticon/docomo_rb.html +0 -119
- data/doc/files/lib/jpmobile/emoticon/softbank_rb.html +0 -119
- data/doc/files/lib/jpmobile/emoticon/z_combine_rb.html +0 -101
- data/doc/files/lib/jpmobile/emoticon_rb.html +0 -101
- data/doc/files/lib/jpmobile/filter_rb.html +0 -115
- data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
- data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -108
- data/doc/files/lib/jpmobile/hook_action_controller_rb.html +0 -101
- data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -110
- data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
- data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
- data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
- data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
- data/doc/files/lib/jpmobile/mobile/emobile_rb.html +0 -105
- data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
- data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
- data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_docomo_rb.html +0 -124
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_emobile_rb.html +0 -111
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_softbank_rb.html +0 -124
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html +0 -114
- data/doc/files/lib/jpmobile/position_rb.html +0 -105
- data/doc/files/lib/jpmobile/request_with_mobile_rb.html +0 -111
- data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -118
- data/doc/files/lib/jpmobile/version_rb.html +0 -101
- data/doc/files/lib/jpmobile_rb.html +0 -101
- data/doc/fr_class_index.html +0 -55
- data/doc/fr_file_index.html +0 -58
- data/doc/fr_method_index.html +0 -134
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,150 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding=" UTF-8"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Jpmobile::Mobile</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Jpmobile::Mobile</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/jpmobile/mobile/abstract_mobile_rb.html">
|
59
|
-
lib/jpmobile/mobile/abstract_mobile.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
<a href="../../files/lib/jpmobile/mobile/au_rb.html">
|
63
|
-
lib/jpmobile/mobile/au.rb
|
64
|
-
</a>
|
65
|
-
<br />
|
66
|
-
<a href="../../files/lib/jpmobile/mobile/docomo_rb.html">
|
67
|
-
lib/jpmobile/mobile/docomo.rb
|
68
|
-
</a>
|
69
|
-
<br />
|
70
|
-
<a href="../../files/lib/jpmobile/mobile/emobile_rb.html">
|
71
|
-
lib/jpmobile/mobile/emobile.rb
|
72
|
-
</a>
|
73
|
-
<br />
|
74
|
-
<a href="../../files/lib/jpmobile/mobile/softbank_rb.html">
|
75
|
-
lib/jpmobile/mobile/softbank.rb
|
76
|
-
</a>
|
77
|
-
<br />
|
78
|
-
<a href="../../files/lib/jpmobile/mobile/willcom_rb.html">
|
79
|
-
lib/jpmobile/mobile/willcom.rb
|
80
|
-
</a>
|
81
|
-
<br />
|
82
|
-
<a href="../../files/lib/jpmobile_rb.html">
|
83
|
-
lib/jpmobile.rb
|
84
|
-
</a>
|
85
|
-
<br />
|
86
|
-
</td>
|
87
|
-
</tr>
|
88
|
-
|
89
|
-
</table>
|
90
|
-
</div>
|
91
|
-
<!-- banner header -->
|
92
|
-
|
93
|
-
<div id="bodyContent">
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<div id="contextContent">
|
98
|
-
|
99
|
-
<div id="description">
|
100
|
-
<h1><a href="Mobile/Willcom.html">Willcom</a>携帯電話</h1>
|
101
|
-
<p>
|
102
|
-
DDI-POCKETを含む。
|
103
|
-
</p>
|
104
|
-
|
105
|
-
</div>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
|
113
|
-
|
114
|
-
<!-- if includes -->
|
115
|
-
|
116
|
-
<div id="section">
|
117
|
-
|
118
|
-
<div id="class-list">
|
119
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
120
|
-
|
121
|
-
Class <a href="Mobile/AbstractMobile.html" class="link">Jpmobile::Mobile::AbstractMobile</a><br />
|
122
|
-
Class <a href="Mobile/Au.html" class="link">Jpmobile::Mobile::Au</a><br />
|
123
|
-
Class <a href="Mobile/Ddipocket.html" class="link">Jpmobile::Mobile::Ddipocket</a><br />
|
124
|
-
Class <a href="Mobile/Docomo.html" class="link">Jpmobile::Mobile::Docomo</a><br />
|
125
|
-
Class <a href="Mobile/Emobile.html" class="link">Jpmobile::Mobile::Emobile</a><br />
|
126
|
-
Class <a href="Mobile/Jphone.html" class="link">Jpmobile::Mobile::Jphone</a><br />
|
127
|
-
Class <a href="Mobile/Softbank.html" class="link">Jpmobile::Mobile::Softbank</a><br />
|
128
|
-
Class <a href="Mobile/Vodafone.html" class="link">Jpmobile::Mobile::Vodafone</a><br />
|
129
|
-
Class <a href="Mobile/Willcom.html" class="link">Jpmobile::Mobile::Willcom</a><br />
|
130
|
-
|
131
|
-
</div>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<!-- if method_list -->
|
140
|
-
|
141
|
-
|
142
|
-
</div>
|
143
|
-
|
144
|
-
|
145
|
-
<div id="validator-badges">
|
146
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
</body>
|
150
|
-
</html>
|
@@ -1,389 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding=" UTF-8"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Jpmobile::Mobile::AbstractMobile</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Jpmobile::Mobile::AbstractMobile</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/jpmobile/mobile/abstract_mobile_rb.html">
|
59
|
-
lib/jpmobile/mobile/abstract_mobile.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
携帯電話の抽象クラス。
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000040">display</a>
|
96
|
-
<a href="#M000035">ident</a>
|
97
|
-
<a href="#M000037">ident_device</a>
|
98
|
-
<a href="#M000036">ident_subscriber</a>
|
99
|
-
<a href="#M000033">new</a>
|
100
|
-
<a href="#M000034">position</a>
|
101
|
-
<a href="#M000041">supports_cookie?</a>
|
102
|
-
<a href="#M000039">valid_ip?</a>
|
103
|
-
<a href="#M000038">valid_ip?</a>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
<!-- if includes -->
|
111
|
-
|
112
|
-
<div id="section">
|
113
|
-
|
114
|
-
|
115
|
-
<div id="constants-list">
|
116
|
-
<h3 class="section-bar">Constants</h3>
|
117
|
-
|
118
|
-
<div class="name-list">
|
119
|
-
<table summary="Constants">
|
120
|
-
<tr class="top-aligned-row context-row">
|
121
|
-
<td class="context-item-name">USER_AGENT_REGEXP</td>
|
122
|
-
<td>=</td>
|
123
|
-
<td class="context-item-value">nil</td>
|
124
|
-
<td width="3em"> </td>
|
125
|
-
<td class="context-item-desc">
|
126
|
-
対応するuser-agentの正規表現
|
127
|
-
|
128
|
-
</td>
|
129
|
-
</tr>
|
130
|
-
</table>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<!-- if method_list -->
|
140
|
-
<div id="methods">
|
141
|
-
<h3 class="section-bar">Public Class methods</h3>
|
142
|
-
|
143
|
-
<div id="method-M000033" class="method-detail">
|
144
|
-
<a name="M000033"></a>
|
145
|
-
|
146
|
-
<div class="method-heading">
|
147
|
-
<a href="#M000033" class="method-signature">
|
148
|
-
<span class="method-name">new</span><span class="method-args">(request)</span>
|
149
|
-
</a>
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div class="method-description">
|
153
|
-
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
155
|
-
<div class="method-source-code" id="M000033-source">
|
156
|
-
<pre>
|
157
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 6</span>
|
158
|
-
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">request</span>)
|
159
|
-
7: <span class="ruby-ivar">@request</span> = <span class="ruby-identifier">request</span>
|
160
|
-
8: <span class="ruby-keyword kw">end</span>
|
161
|
-
</pre>
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
</div>
|
165
|
-
|
166
|
-
<div id="method-M000038" class="method-detail">
|
167
|
-
<a name="M000038"></a>
|
168
|
-
|
169
|
-
<div class="method-heading">
|
170
|
-
<a href="#M000038" class="method-signature">
|
171
|
-
<span class="method-name">valid_ip?</span><span class="method-args">(remote_addr)</span>
|
172
|
-
</a>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div class="method-description">
|
176
|
-
<p>
|
177
|
-
当該キャリアのIPアドレス帯域からのアクセスであれば
|
178
|
-
<tt>true</tt> を返す。 そうでなければ <tt>false</tt>
|
179
|
-
を返す。 IP空間が定義されていない場合は <tt>nil</tt>
|
180
|
-
を返す。
|
181
|
-
</p>
|
182
|
-
<p><a class="source-toggle" href="#"
|
183
|
-
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
184
|
-
<div class="method-source-code" id="M000038-source">
|
185
|
-
<pre>
|
186
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 26</span>
|
187
|
-
26: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">valid_ip?</span> <span class="ruby-identifier">remote_addr</span>
|
188
|
-
27: <span class="ruby-identifier">addrs</span> = <span class="ruby-keyword kw">nil</span>
|
189
|
-
28: <span class="ruby-keyword kw">begin</span>
|
190
|
-
29: <span class="ruby-identifier">addrs</span> = <span class="ruby-keyword kw">self</span><span class="ruby-operator">::</span><span class="ruby-constant">IP_ADDRESSES</span>
|
191
|
-
30: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">NameError</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
192
|
-
31: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
193
|
-
32: <span class="ruby-keyword kw">end</span>
|
194
|
-
33: <span class="ruby-identifier">remote</span> = <span class="ruby-constant">IPAddr</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">remote_addr</span>)
|
195
|
-
34: <span class="ruby-identifier">addrs</span>.<span class="ruby-identifier">any?</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">ip</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ip</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">remote</span> }
|
196
|
-
35: <span class="ruby-keyword kw">end</span>
|
197
|
-
</pre>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
203
|
-
|
204
|
-
<div id="method-M000040" class="method-detail">
|
205
|
-
<a name="M000040"></a>
|
206
|
-
|
207
|
-
<div class="method-heading">
|
208
|
-
<a href="#M000040" class="method-signature">
|
209
|
-
<span class="method-name">display</span><span class="method-args">()</span>
|
210
|
-
</a>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
<div class="method-description">
|
214
|
-
<p>
|
215
|
-
画面情報を <tt><a href="../Display.html">Display</a></tt>
|
216
|
-
クラスのインスタンスで返す。
|
217
|
-
</p>
|
218
|
-
<p><a class="source-toggle" href="#"
|
219
|
-
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
220
|
-
<div class="method-source-code" id="M000040-source">
|
221
|
-
<pre>
|
222
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 42</span>
|
223
|
-
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display</span>
|
224
|
-
43: <span class="ruby-ivar">@__displlay</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Display</span>.<span class="ruby-identifier">new</span>
|
225
|
-
44: <span class="ruby-keyword kw">end</span>
|
226
|
-
</pre>
|
227
|
-
</div>
|
228
|
-
</div>
|
229
|
-
</div>
|
230
|
-
|
231
|
-
<div id="method-M000035" class="method-detail">
|
232
|
-
<a name="M000035"></a>
|
233
|
-
|
234
|
-
<div class="method-heading">
|
235
|
-
<a href="#M000035" class="method-signature">
|
236
|
-
<span class="method-name">ident</span><span class="method-args">()</span>
|
237
|
-
</a>
|
238
|
-
</div>
|
239
|
-
|
240
|
-
<div class="method-description">
|
241
|
-
<p>
|
242
|
-
契約者又は端末を識別する文字列があれば返す。
|
243
|
-
</p>
|
244
|
-
<p><a class="source-toggle" href="#"
|
245
|
-
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
246
|
-
<div class="method-source-code" id="M000035-source">
|
247
|
-
<pre>
|
248
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 17</span>
|
249
|
-
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ident</span>; <span class="ruby-identifier">ident_subscriber</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">ident_device</span>; <span class="ruby-keyword kw">end</span>
|
250
|
-
</pre>
|
251
|
-
</div>
|
252
|
-
</div>
|
253
|
-
</div>
|
254
|
-
|
255
|
-
<div id="method-M000037" class="method-detail">
|
256
|
-
<a name="M000037"></a>
|
257
|
-
|
258
|
-
<div class="method-heading">
|
259
|
-
<a href="#M000037" class="method-signature">
|
260
|
-
<span class="method-name">ident_device</span><span class="method-args">()</span>
|
261
|
-
</a>
|
262
|
-
</div>
|
263
|
-
|
264
|
-
<div class="method-description">
|
265
|
-
<p>
|
266
|
-
端末を識別する文字列があれば返す。
|
267
|
-
</p>
|
268
|
-
<p><a class="source-toggle" href="#"
|
269
|
-
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
270
|
-
<div class="method-source-code" id="M000037-source">
|
271
|
-
<pre>
|
272
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 21</span>
|
273
|
-
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ident_device</span>; <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span>
|
274
|
-
</pre>
|
275
|
-
</div>
|
276
|
-
</div>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
<div id="method-M000036" class="method-detail">
|
280
|
-
<a name="M000036"></a>
|
281
|
-
|
282
|
-
<div class="method-heading">
|
283
|
-
<a href="#M000036" class="method-signature">
|
284
|
-
<span class="method-name">ident_subscriber</span><span class="method-args">()</span>
|
285
|
-
</a>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
<div class="method-description">
|
289
|
-
<p>
|
290
|
-
契約者を識別する文字列があれば返す。
|
291
|
-
</p>
|
292
|
-
<p><a class="source-toggle" href="#"
|
293
|
-
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
294
|
-
<div class="method-source-code" id="M000036-source">
|
295
|
-
<pre>
|
296
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 19</span>
|
297
|
-
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ident_subscriber</span>; <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span>
|
298
|
-
</pre>
|
299
|
-
</div>
|
300
|
-
</div>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
<div id="method-M000034" class="method-detail">
|
304
|
-
<a name="M000034"></a>
|
305
|
-
|
306
|
-
<div class="method-heading">
|
307
|
-
<a href="#M000034" class="method-signature">
|
308
|
-
<span class="method-name">position</span><span class="method-args">()</span>
|
309
|
-
</a>
|
310
|
-
</div>
|
311
|
-
|
312
|
-
<div class="method-description">
|
313
|
-
<p>
|
314
|
-
緯度経度があれば <a href="../Position.html">Position</a>
|
315
|
-
のインスタンスを返す。
|
316
|
-
</p>
|
317
|
-
<p><a class="source-toggle" href="#"
|
318
|
-
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
319
|
-
<div class="method-source-code" id="M000034-source">
|
320
|
-
<pre>
|
321
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 14</span>
|
322
|
-
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span>
|
323
|
-
</pre>
|
324
|
-
</div>
|
325
|
-
</div>
|
326
|
-
</div>
|
327
|
-
|
328
|
-
<div id="method-M000041" class="method-detail">
|
329
|
-
<a name="M000041"></a>
|
330
|
-
|
331
|
-
<div class="method-heading">
|
332
|
-
<a href="#M000041" class="method-signature">
|
333
|
-
<span class="method-name">supports_cookie?</span><span class="method-args">()</span>
|
334
|
-
</a>
|
335
|
-
</div>
|
336
|
-
|
337
|
-
<div class="method-description">
|
338
|
-
<p>
|
339
|
-
クッキーをサポートしているか。
|
340
|
-
</p>
|
341
|
-
<p><a class="source-toggle" href="#"
|
342
|
-
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
343
|
-
<div class="method-source-code" id="M000041-source">
|
344
|
-
<pre>
|
345
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 47</span>
|
346
|
-
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
|
347
|
-
48: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
348
|
-
49: <span class="ruby-keyword kw">end</span>
|
349
|
-
</pre>
|
350
|
-
</div>
|
351
|
-
</div>
|
352
|
-
</div>
|
353
|
-
|
354
|
-
<div id="method-M000039" class="method-detail">
|
355
|
-
<a name="M000039"></a>
|
356
|
-
|
357
|
-
<div class="method-heading">
|
358
|
-
<a href="#M000039" class="method-signature">
|
359
|
-
<span class="method-name">valid_ip?</span><span class="method-args">()</span>
|
360
|
-
</a>
|
361
|
-
</div>
|
362
|
-
|
363
|
-
<div class="method-description">
|
364
|
-
<p><a class="source-toggle" href="#"
|
365
|
-
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
366
|
-
<div class="method-source-code" id="M000039-source">
|
367
|
-
<pre>
|
368
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 37</span>
|
369
|
-
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_ip?</span>
|
370
|
-
38: <span class="ruby-ivar">@__valid_ip</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">valid_ip?</span> <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">remote_addr</span>
|
371
|
-
39: <span class="ruby-keyword kw">end</span>
|
372
|
-
</pre>
|
373
|
-
</div>
|
374
|
-
</div>
|
375
|
-
</div>
|
376
|
-
|
377
|
-
|
378
|
-
</div>
|
379
|
-
|
380
|
-
|
381
|
-
</div>
|
382
|
-
|
383
|
-
|
384
|
-
<div id="validator-badges">
|
385
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
386
|
-
</div>
|
387
|
-
|
388
|
-
</body>
|
389
|
-
</html>
|