jpmobile 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +41 -4
- data/Rakefile +11 -9
- data/lib/jpmobile.rb +0 -6
- data/lib/jpmobile/emoticon.rb +105 -0
- data/lib/jpmobile/emoticon/au.rb +644 -0
- data/lib/jpmobile/emoticon/conversion_table.rb +3908 -0
- data/lib/jpmobile/emoticon/docomo.rb +255 -0
- data/lib/jpmobile/emoticon/softbank.rb +477 -0
- data/lib/jpmobile/emoticon/z_combine.rb +20 -0
- data/lib/jpmobile/filter.rb +73 -51
- data/lib/jpmobile/helpers.rb +4 -4
- data/lib/jpmobile/hook_abstract_request.rb +6 -2
- data/lib/jpmobile/hook_action_controller.rb +10 -0
- data/lib/jpmobile/hook_action_view.rb +7 -0
- data/lib/jpmobile/mobile/abstract_mobile.rb +5 -1
- data/lib/jpmobile/mobile/au.rb +1 -1
- data/lib/jpmobile/mobile/docomo.rb +2 -5
- data/lib/jpmobile/mobile/softbank.rb +9 -1
- data/lib/jpmobile/mobile/z_display_info_docomo.rb +32 -10
- data/lib/jpmobile/mobile/z_ip_addresses.rb +6 -6
- data/lib/jpmobile/mobile/z_ip_addresses_au.rb +2 -1
- data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +6 -1
- data/lib/jpmobile/trans_sid.rb +5 -2
- data/lib/jpmobile/version.rb +1 -1
- data/test/au_test.rb +1 -0
- data/test/docomo_test.rb +8 -0
- data/test/emoticon_functional_test.rb +166 -0
- data/test/emoticon_test.rb +58 -0
- data/test/filter_functional_test.rb +146 -0
- data/test/filter_test.rb +8 -8
- data/test/softbank_test.rb +18 -0
- data/tools/generate_au_emoticon_table.rb +25 -0
- data/tools/{update_emoji_docomo.rb → generate_docomo_emoticon_table.rb} +4 -8
- data/tools/generate_emoticon_conversion_table.rb +107 -0
- data/tools/generate_softbank_emoticon_table.rb +32 -0
- data/tools/update_display_info_docomo.rb +3 -5
- metadata +18 -75
- data/NOTES +0 -21
- data/TODO +0 -16
- data/doc/classes/ActionController.html +0 -107
- data/doc/classes/ActionController/AbstractRequest.html +0 -216
- 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/Filter.html +0 -119
- data/doc/classes/Jpmobile/Filter/Base.html +0 -269
- data/doc/classes/Jpmobile/Filter/Emoji.html +0 -130
- data/doc/classes/Jpmobile/Filter/Emoji/Inner.html +0 -183
- data/doc/classes/Jpmobile/Filter/Emoji/Outer.html +0 -187
- data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
- data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -170
- data/doc/classes/Jpmobile/Filter/Sjis.html +0 -244
- data/doc/classes/Jpmobile/Helpers.html +0 -558
- data/doc/classes/Jpmobile/Mobile.html +0 -141
- data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -324
- data/doc/classes/Jpmobile/Mobile/Au.html +0 -415
- data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
- data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -366
- data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
- data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -300
- data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
- data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -210
- data/doc/classes/Jpmobile/Position.html +0 -384
- data/doc/created.rid +0 -1
- data/doc/files/CHANGELOG.html +0 -110
- data/doc/files/NOTES.html +0 -163
- data/doc/files/README.html +0 -345
- data/doc/files/TODO.html +0 -138
- data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
- 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 -109
- data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -119
- 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/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_emoji_docomo_rb.html +0 -119
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_rb.html +0 -117
- 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/trans_sid_rb.html +0 -114
- 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 -50
- data/doc/fr_file_index.html +0 -50
- data/doc/fr_method_index.html +0 -113
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/lib/jpmobile/mobile/z_emoji_docomo.rb +0 -508
- data/test/firefox_test.rb +0 -8
- data/test/transitsid_test.rb +0 -86
@@ -1,244 +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::Filter::Sjis</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::Filter::Sjis</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/jpmobile/filter_rb.html">
|
59
|
-
lib/jpmobile/filter.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
|
-
<a href="Base.html">
|
69
|
-
Base
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
Shift_JISとUnicodeのフィルタ(NKFを使用)
|
86
|
-
</p>
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div id="method-list">
|
94
|
-
<h3 class="section-bar">Methods</h3>
|
95
|
-
|
96
|
-
<div class="name-list">
|
97
|
-
<a href="#M000057">after_after</a>
|
98
|
-
<a href="#M000058">apply_incoming?</a>
|
99
|
-
<a href="#M000059">apply_outgoing?</a>
|
100
|
-
<a href="#M000055">to_external</a>
|
101
|
-
<a href="#M000056">to_internal</a>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
|
105
|
-
</div>
|
106
|
-
|
107
|
-
|
108
|
-
<!-- if includes -->
|
109
|
-
|
110
|
-
<div id="section">
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<!-- if method_list -->
|
120
|
-
<div id="methods">
|
121
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
122
|
-
|
123
|
-
<div id="method-M000057" class="method-detail">
|
124
|
-
<a name="M000057"></a>
|
125
|
-
|
126
|
-
<div class="method-heading">
|
127
|
-
<a href="#M000057" class="method-signature">
|
128
|
-
<span class="method-name">after_after</span><span class="method-args">(controller)</span>
|
129
|
-
</a>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
<div class="method-description">
|
133
|
-
<p><a class="source-toggle" href="#"
|
134
|
-
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
135
|
-
<div class="method-source-code" id="M000057-source">
|
136
|
-
<pre>
|
137
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 70</span>
|
138
|
-
70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_after</span>(<span class="ruby-identifier">controller</span>)
|
139
|
-
71: <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">response</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-value str">"Shift_JIS"</span>
|
140
|
-
72: <span class="ruby-keyword kw">end</span>
|
141
|
-
</pre>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div id="method-M000058" class="method-detail">
|
147
|
-
<a name="M000058"></a>
|
148
|
-
|
149
|
-
<div class="method-heading">
|
150
|
-
<a href="#M000058" class="method-signature">
|
151
|
-
<span class="method-name">apply_incoming?</span><span class="method-args">(controller)</span>
|
152
|
-
</a>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div class="method-description">
|
156
|
-
<p><a class="source-toggle" href="#"
|
157
|
-
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
158
|
-
<div class="method-source-code" id="M000058-source">
|
159
|
-
<pre>
|
160
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 73</span>
|
161
|
-
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apply_incoming?</span>(<span class="ruby-identifier">controller</span>)
|
162
|
-
74: <span class="ruby-comment cmt"># Vodafone 3G/Softbank(Shift-JISにすると絵文字で不具合が生じる)以外の</span>
|
163
|
-
75: <span class="ruby-comment cmt"># 携帯電話の場合に適用する。</span>
|
164
|
-
76: <span class="ruby-identifier">mobile</span> = <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>
|
165
|
-
77: <span class="ruby-identifier">mobile</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Vodafone</span>)<span class="ruby-operator">||</span><span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Softbank</span>))
|
166
|
-
78: <span class="ruby-keyword kw">end</span>
|
167
|
-
</pre>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
<div id="method-M000059" class="method-detail">
|
173
|
-
<a name="M000059"></a>
|
174
|
-
|
175
|
-
<div class="method-heading">
|
176
|
-
<span class="method-name">apply_outgoing?</span><span class="method-args">(controller)</span>
|
177
|
-
</div>
|
178
|
-
|
179
|
-
<div class="method-description">
|
180
|
-
<p>
|
181
|
-
Alias for apply_incoming?
|
182
|
-
</p>
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
|
186
|
-
<div id="method-M000055" class="method-detail">
|
187
|
-
<a name="M000055"></a>
|
188
|
-
|
189
|
-
<div class="method-heading">
|
190
|
-
<a href="#M000055" class="method-signature">
|
191
|
-
<span class="method-name">to_external</span><span class="method-args">(str)</span>
|
192
|
-
</a>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div class="method-description">
|
196
|
-
<p><a class="source-toggle" href="#"
|
197
|
-
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
198
|
-
<div class="method-source-code" id="M000055-source">
|
199
|
-
<pre>
|
200
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 64</span>
|
201
|
-
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_external</span>(<span class="ruby-identifier">str</span>)
|
202
|
-
65: <span class="ruby-constant">NKF</span>.<span class="ruby-identifier">nkf</span>(<span class="ruby-value str">'-m0 -x -Ws'</span>, <span class="ruby-identifier">str</span>)
|
203
|
-
66: <span class="ruby-keyword kw">end</span>
|
204
|
-
</pre>
|
205
|
-
</div>
|
206
|
-
</div>
|
207
|
-
</div>
|
208
|
-
|
209
|
-
<div id="method-M000056" class="method-detail">
|
210
|
-
<a name="M000056"></a>
|
211
|
-
|
212
|
-
<div class="method-heading">
|
213
|
-
<a href="#M000056" class="method-signature">
|
214
|
-
<span class="method-name">to_internal</span><span class="method-args">(str)</span>
|
215
|
-
</a>
|
216
|
-
</div>
|
217
|
-
|
218
|
-
<div class="method-description">
|
219
|
-
<p><a class="source-toggle" href="#"
|
220
|
-
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
221
|
-
<div class="method-source-code" id="M000056-source">
|
222
|
-
<pre>
|
223
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 67</span>
|
224
|
-
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_internal</span>(<span class="ruby-identifier">str</span>)
|
225
|
-
68: <span class="ruby-constant">NKF</span>.<span class="ruby-identifier">nkf</span>(<span class="ruby-value str">'-m0 -Sw'</span>, <span class="ruby-identifier">str</span>)
|
226
|
-
69: <span class="ruby-keyword kw">end</span>
|
227
|
-
</pre>
|
228
|
-
</div>
|
229
|
-
</div>
|
230
|
-
</div>
|
231
|
-
|
232
|
-
|
233
|
-
</div>
|
234
|
-
|
235
|
-
|
236
|
-
</div>
|
237
|
-
|
238
|
-
|
239
|
-
<div id="validator-badges">
|
240
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
241
|
-
</div>
|
242
|
-
|
243
|
-
</body>
|
244
|
-
</html>
|
@@ -1,558 +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::Helpers</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::Helpers</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/jpmobile/helpers_rb.html">
|
59
|
-
lib/jpmobile/helpers.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
携帯電話端末に位置情報を要求するための、特殊なリンクを出力するヘルパー群。
|
78
|
-
多くのキャリアでは特殊なFORMでも位置情報を要求できる。
|
79
|
-
</p>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<div id="method-list">
|
87
|
-
<h3 class="section-bar">Methods</h3>
|
88
|
-
|
89
|
-
<div class="name-list">
|
90
|
-
<a href="#M000041">au_gps_link_to</a>
|
91
|
-
<a href="#M000040">au_gps_url_for</a>
|
92
|
-
<a href="#M000043">au_location_link_to</a>
|
93
|
-
<a href="#M000042">au_location_url_for</a>
|
94
|
-
<a href="#M000036">docomo_foma_gps_link_to</a>
|
95
|
-
<a href="#M000038">docomo_openiarea_link_to</a>
|
96
|
-
<a href="#M000037">docomo_openiarea_url_for</a>
|
97
|
-
<a href="#M000039">docomo_utn_link_to</a>
|
98
|
-
<a href="#M000035">get_position_link_to</a>
|
99
|
-
<a href="#M000044">jphone_location_link_to</a>
|
100
|
-
<a href="#M000046">softbank_location_link_to</a>
|
101
|
-
<a href="#M000045">softbank_location_url_for</a>
|
102
|
-
<a href="#M000048">willcom_location_link_to</a>
|
103
|
-
<a href="#M000047">willcom_location_url_for</a>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
<!-- if includes -->
|
111
|
-
|
112
|
-
<div id="section">
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<!-- if method_list -->
|
122
|
-
<div id="methods">
|
123
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
124
|
-
|
125
|
-
<div id="method-M000041" class="method-detail">
|
126
|
-
<a name="M000041"></a>
|
127
|
-
|
128
|
-
<div class="method-heading">
|
129
|
-
<a href="#M000041" class="method-signature">
|
130
|
-
<span class="method-name">au_gps_link_to</span><span class="method-args">(str, options={})</span>
|
131
|
-
</a>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
<div class="method-description">
|
135
|
-
<p>
|
136
|
-
au GPS位置情報を取得するためのリンクを返す。
|
137
|
-
</p>
|
138
|
-
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
140
|
-
<div class="method-source-code" id="M000041-source">
|
141
|
-
<pre>
|
142
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 80</span>
|
143
|
-
80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">au_gps_link_to</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">options</span>={})
|
144
|
-
81: <span class="ruby-identifier">link_to_url</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">au_gps_url_for</span>(<span class="ruby-identifier">options</span>))
|
145
|
-
82: <span class="ruby-keyword kw">end</span>
|
146
|
-
</pre>
|
147
|
-
</div>
|
148
|
-
</div>
|
149
|
-
</div>
|
150
|
-
|
151
|
-
<div id="method-M000040" class="method-detail">
|
152
|
-
<a name="M000040"></a>
|
153
|
-
|
154
|
-
<div class="method-heading">
|
155
|
-
<a href="#M000040" class="method-signature">
|
156
|
-
<span class="method-name">au_gps_url_for</span><span class="method-args">(options={})</span>
|
157
|
-
</a>
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<div class="method-description">
|
161
|
-
<p>
|
162
|
-
au GPS位置情報を取得するためのURLを返す。
|
163
|
-
</p>
|
164
|
-
<p><a class="source-toggle" href="#"
|
165
|
-
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
166
|
-
<div class="method-source-code" id="M000040-source">
|
167
|
-
<pre>
|
168
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 71</span>
|
169
|
-
71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">au_gps_url_for</span>(<span class="ruby-identifier">options</span>={})
|
170
|
-
72: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
171
|
-
73: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
172
|
-
74: <span class="ruby-identifier">datum</span> = (<span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:datum</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span> ).<span class="ruby-identifier">to_i</span> <span class="ruby-comment cmt"># 0:wgs84, 1:tokyo</span>
|
173
|
-
75: <span class="ruby-identifier">unit</span> = (<span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:unit</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span> ).<span class="ruby-identifier">to_i</span> <span class="ruby-comment cmt"># 0:dms, 1:deg</span>
|
174
|
-
76: <span class="ruby-node">"device:gpsone?url=#{CGI.escape(url_for(options))}&ver=1&datum=#{datum}&unit=#{unit}&acry=0&number=0"</span>
|
175
|
-
77: <span class="ruby-keyword kw">end</span>
|
176
|
-
</pre>
|
177
|
-
</div>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
|
181
|
-
<div id="method-M000043" class="method-detail">
|
182
|
-
<a name="M000043"></a>
|
183
|
-
|
184
|
-
<div class="method-heading">
|
185
|
-
<a href="#M000043" class="method-signature">
|
186
|
-
<span class="method-name">au_location_link_to</span><span class="method-args">(str, options={})</span>
|
187
|
-
</a>
|
188
|
-
</div>
|
189
|
-
|
190
|
-
<div class="method-description">
|
191
|
-
<p>
|
192
|
-
au 簡易位置情報を取得するためのリンクを返す。
|
193
|
-
</p>
|
194
|
-
<p><a class="source-toggle" href="#"
|
195
|
-
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
196
|
-
<div class="method-source-code" id="M000043-source">
|
197
|
-
<pre>
|
198
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 92</span>
|
199
|
-
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">au_location_link_to</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">options</span>={})
|
200
|
-
93: <span class="ruby-identifier">link_to_url</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">au_location_url_for</span>(<span class="ruby-identifier">options</span>))
|
201
|
-
94: <span class="ruby-keyword kw">end</span>
|
202
|
-
</pre>
|
203
|
-
</div>
|
204
|
-
</div>
|
205
|
-
</div>
|
206
|
-
|
207
|
-
<div id="method-M000042" class="method-detail">
|
208
|
-
<a name="M000042"></a>
|
209
|
-
|
210
|
-
<div class="method-heading">
|
211
|
-
<a href="#M000042" class="method-signature">
|
212
|
-
<span class="method-name">au_location_url_for</span><span class="method-args">(options={})</span>
|
213
|
-
</a>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
<div class="method-description">
|
217
|
-
<p>
|
218
|
-
au 簡易位置情報を取得するためのURLを返す。
|
219
|
-
</p>
|
220
|
-
<p><a class="source-toggle" href="#"
|
221
|
-
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
222
|
-
<div class="method-source-code" id="M000042-source">
|
223
|
-
<pre>
|
224
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 85</span>
|
225
|
-
85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">au_location_url_for</span>(<span class="ruby-identifier">options</span>={})
|
226
|
-
86: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
227
|
-
87: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
228
|
-
88: <span class="ruby-node">"device:location?url=#{CGI.escape(url_for(options))}"</span>
|
229
|
-
89: <span class="ruby-keyword kw">end</span>
|
230
|
-
</pre>
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
<div id="method-M000036" class="method-detail">
|
236
|
-
<a name="M000036"></a>
|
237
|
-
|
238
|
-
<div class="method-heading">
|
239
|
-
<a href="#M000036" class="method-signature">
|
240
|
-
<span class="method-name">docomo_foma_gps_link_to</span><span class="method-args">(str, options={})</span>
|
241
|
-
</a>
|
242
|
-
</div>
|
243
|
-
|
244
|
-
<div class="method-description">
|
245
|
-
<p>
|
246
|
-
DoCoMo FOMAでGPS位置情報を取得するためのリンクを返す。
|
247
|
-
</p>
|
248
|
-
<p><a class="source-toggle" href="#"
|
249
|
-
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
250
|
-
<div class="method-source-code" id="M000036-source">
|
251
|
-
<pre>
|
252
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 45</span>
|
253
|
-
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">docomo_foma_gps_link_to</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">options</span>={})
|
254
|
-
46: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
255
|
-
47: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
256
|
-
48: <span class="ruby-keyword kw">return</span> <span class="ruby-node">%{<a href="#{url_for(options)}" lcs>#{CGI.escapeHTML(str)}</a>}</span>
|
257
|
-
49: <span class="ruby-keyword kw">end</span>
|
258
|
-
</pre>
|
259
|
-
</div>
|
260
|
-
</div>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
<div id="method-M000038" class="method-detail">
|
264
|
-
<a name="M000038"></a>
|
265
|
-
|
266
|
-
<div class="method-heading">
|
267
|
-
<a href="#M000038" class="method-signature">
|
268
|
-
<span class="method-name">docomo_openiarea_link_to</span><span class="method-args">(str, options={})</span>
|
269
|
-
</a>
|
270
|
-
</div>
|
271
|
-
|
272
|
-
<div class="method-description">
|
273
|
-
<p>
|
274
|
-
DoCoMoでオープンiエリアを取得するためのリンクを返す。
|
275
|
-
</p>
|
276
|
-
<p><a class="source-toggle" href="#"
|
277
|
-
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
278
|
-
<div class="method-source-code" id="M000038-source">
|
279
|
-
<pre>
|
280
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 59</span>
|
281
|
-
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">docomo_openiarea_link_to</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">options</span>={})
|
282
|
-
60: <span class="ruby-identifier">link_to_url</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">docomo_openiarea_url_for</span>(<span class="ruby-identifier">options</span>))
|
283
|
-
61: <span class="ruby-keyword kw">end</span>
|
284
|
-
</pre>
|
285
|
-
</div>
|
286
|
-
</div>
|
287
|
-
</div>
|
288
|
-
|
289
|
-
<div id="method-M000037" class="method-detail">
|
290
|
-
<a name="M000037"></a>
|
291
|
-
|
292
|
-
<div class="method-heading">
|
293
|
-
<a href="#M000037" class="method-signature">
|
294
|
-
<span class="method-name">docomo_openiarea_url_for</span><span class="method-args">(options={})</span>
|
295
|
-
</a>
|
296
|
-
</div>
|
297
|
-
|
298
|
-
<div class="method-description">
|
299
|
-
<p>
|
300
|
-
DoCoMoでオープンiエリアを取得するためのURLを返す。
|
301
|
-
</p>
|
302
|
-
<p><a class="source-toggle" href="#"
|
303
|
-
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
304
|
-
<div class="method-source-code" id="M000037-source">
|
305
|
-
<pre>
|
306
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 52</span>
|
307
|
-
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">docomo_openiarea_url_for</span>(<span class="ruby-identifier">options</span>={})
|
308
|
-
53: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
309
|
-
54: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
310
|
-
55: <span class="ruby-node">"http://w1m.docomo.ne.jp/cp/iarea?ecode=OPENAREACODE&msn=OPENAREAKEY&nl=#{CGI.escape(url_for(options))}"</span>
|
311
|
-
56: <span class="ruby-keyword kw">end</span>
|
312
|
-
</pre>
|
313
|
-
</div>
|
314
|
-
</div>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
<div id="method-M000039" class="method-detail">
|
318
|
-
<a name="M000039"></a>
|
319
|
-
|
320
|
-
<div class="method-heading">
|
321
|
-
<a href="#M000039" class="method-signature">
|
322
|
-
<span class="method-name">docomo_utn_link_to</span><span class="method-args">(str, options={})</span>
|
323
|
-
</a>
|
324
|
-
</div>
|
325
|
-
|
326
|
-
<div class="method-description">
|
327
|
-
<p>
|
328
|
-
DoCoMoで端末製造番号等を取得するためのリンクを返す。
|
329
|
-
</p>
|
330
|
-
<p><a class="source-toggle" href="#"
|
331
|
-
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
332
|
-
<div class="method-source-code" id="M000039-source">
|
333
|
-
<pre>
|
334
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 64</span>
|
335
|
-
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">docomo_utn_link_to</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">options</span>={})
|
336
|
-
65: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
337
|
-
66: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
338
|
-
67: <span class="ruby-keyword kw">return</span> <span class="ruby-node">%{<a href="#{url_for(options)}" utn>#{CGI.escapeHTML(str)}</a>}</span>
|
339
|
-
68: <span class="ruby-keyword kw">end</span>
|
340
|
-
</pre>
|
341
|
-
</div>
|
342
|
-
</div>
|
343
|
-
</div>
|
344
|
-
|
345
|
-
<div id="method-M000035" class="method-detail">
|
346
|
-
<a name="M000035"></a>
|
347
|
-
|
348
|
-
<div class="method-heading">
|
349
|
-
<a href="#M000035" class="method-signature">
|
350
|
-
<span class="method-name">get_position_link_to</span><span class="method-args">(str=nil, options={})</span>
|
351
|
-
</a>
|
352
|
-
</div>
|
353
|
-
|
354
|
-
<div class="method-description">
|
355
|
-
<p>
|
356
|
-
位置情報(緯度経度がとれるもの。オープンiエリアをのぞく)要求するリンクを作成する。
|
357
|
-
位置情報を受け取るページを <tt>url_for</tt>
|
358
|
-
に渡す引数の形式で <tt>options</tt> に指定する。 :show_all
|
359
|
-
=> <tt>true</tt>
|
360
|
-
とするとキャリア判別を行わず全てキャリアのリンクを返す。
|
361
|
-
第1引数に文字列を与えるとその文字列をアンカーテキストにする。
|
362
|
-
第1引数がHashの場合はデフォルトのアンカーテキストを出力する。
|
363
|
-
</p>
|
364
|
-
<p><a class="source-toggle" href="#"
|
365
|
-
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
366
|
-
<div class="method-source-code" id="M000035-source">
|
367
|
-
<pre>
|
368
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 11</span>
|
369
|
-
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_position_link_to</span>(<span class="ruby-identifier">str</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
|
370
|
-
12: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">str</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
371
|
-
13: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">str</span>
|
372
|
-
14: <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">nil</span>
|
373
|
-
15: <span class="ruby-keyword kw">end</span>
|
374
|
-
16: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
375
|
-
17: <span class="ruby-identifier">show_all</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:show_all</span>)
|
376
|
-
18:
|
377
|
-
19: <span class="ruby-comment cmt"># TODO: コード汚い</span>
|
378
|
-
20: <span class="ruby-identifier">s</span> = []
|
379
|
-
21: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Docomo</span>)
|
380
|
-
22: <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">docomo_foma_gps_link_to</span>(<span class="ruby-identifier">str</span><span class="ruby-operator">||</span><span class="ruby-value str">"DoCoMo FOMA(GPS)"</span>, <span class="ruby-identifier">options</span>)
|
381
|
-
23: <span class="ruby-keyword kw">end</span>
|
382
|
-
24: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Au</span>)
|
383
|
-
25: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">supports_gps?</span>
|
384
|
-
26: <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">au_gps_link_to</span>(<span class="ruby-identifier">str</span><span class="ruby-operator">||</span><span class="ruby-value str">"au(GPS)"</span>, <span class="ruby-identifier">options</span>)
|
385
|
-
27: <span class="ruby-keyword kw">end</span>
|
386
|
-
28: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> (<span class="ruby-operator">!</span>(<span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">supports_gps?</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">supports_location?</span>)
|
387
|
-
29: <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">au_location_link_to</span>(<span class="ruby-identifier">str</span><span class="ruby-operator">||</span><span class="ruby-value str">"au(antenna)"</span>, <span class="ruby-identifier">options</span>)
|
388
|
-
30: <span class="ruby-keyword kw">end</span>
|
389
|
-
31: <span class="ruby-keyword kw">end</span>
|
390
|
-
32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Jphone</span>)
|
391
|
-
33: <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">jphone_location_link_to</span>(<span class="ruby-identifier">str</span><span class="ruby-operator">||</span><span class="ruby-value str">"Softbank(antenna)"</span>, <span class="ruby-identifier">options</span>)
|
392
|
-
34: <span class="ruby-keyword kw">end</span>
|
393
|
-
35: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Vodafone</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Softbank</span>)
|
394
|
-
36: <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">softbank_location_link_to</span>(<span class="ruby-identifier">str</span><span class="ruby-operator">||</span><span class="ruby-value str">"Softbank 3G(GPS)"</span>, <span class="ruby-identifier">options</span>)
|
395
|
-
37: <span class="ruby-keyword kw">end</span>
|
396
|
-
38: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">show_all</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Willcom</span>)
|
397
|
-
39: <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">willcom_location_link_to</span>(<span class="ruby-identifier">str</span><span class="ruby-operator">||</span><span class="ruby-value str">"Willcom"</span>, <span class="ruby-identifier">options</span>)
|
398
|
-
40: <span class="ruby-keyword kw">end</span>
|
399
|
-
41: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"<br />\n"</span>)
|
400
|
-
42: <span class="ruby-keyword kw">end</span>
|
401
|
-
</pre>
|
402
|
-
</div>
|
403
|
-
</div>
|
404
|
-
</div>
|
405
|
-
|
406
|
-
<div id="method-M000044" class="method-detail">
|
407
|
-
<a name="M000044"></a>
|
408
|
-
|
409
|
-
<div class="method-heading">
|
410
|
-
<a href="#M000044" class="method-signature">
|
411
|
-
<span class="method-name">jphone_location_link_to</span><span class="method-args">(str,options={})</span>
|
412
|
-
</a>
|
413
|
-
</div>
|
414
|
-
|
415
|
-
<div class="method-description">
|
416
|
-
<p>
|
417
|
-
J-PHONE 位置情報 (基地局)
|
418
|
-
を取得するためのリンクを返す。
|
419
|
-
</p>
|
420
|
-
<p><a class="source-toggle" href="#"
|
421
|
-
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
422
|
-
<div class="method-source-code" id="M000044-source">
|
423
|
-
<pre>
|
424
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 97</span>
|
425
|
-
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">jphone_location_link_to</span>(<span class="ruby-identifier">str</span>,<span class="ruby-identifier">options</span>={})
|
426
|
-
98: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
427
|
-
99: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
428
|
-
100: <span class="ruby-keyword kw">return</span> <span class="ruby-node">%{<a z href="#{url_for(options)}">#{CGI.escapeHTML(str)}</a>}</span>
|
429
|
-
101: <span class="ruby-keyword kw">end</span>
|
430
|
-
</pre>
|
431
|
-
</div>
|
432
|
-
</div>
|
433
|
-
</div>
|
434
|
-
|
435
|
-
<div id="method-M000046" class="method-detail">
|
436
|
-
<a name="M000046"></a>
|
437
|
-
|
438
|
-
<div class="method-heading">
|
439
|
-
<a href="#M000046" class="method-signature">
|
440
|
-
<span class="method-name">softbank_location_link_to</span><span class="method-args">(str,options={})</span>
|
441
|
-
</a>
|
442
|
-
</div>
|
443
|
-
|
444
|
-
<div class="method-description">
|
445
|
-
<p>
|
446
|
-
Softbank(含むVodafone
|
447
|
-
3G)で位置情報を取得するためのリンクを返す。
|
448
|
-
</p>
|
449
|
-
<p><a class="source-toggle" href="#"
|
450
|
-
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
451
|
-
<div class="method-source-code" id="M000046-source">
|
452
|
-
<pre>
|
453
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 112</span>
|
454
|
-
112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">softbank_location_link_to</span>(<span class="ruby-identifier">str</span>,<span class="ruby-identifier">options</span>={})
|
455
|
-
113: <span class="ruby-identifier">link_to_url</span>(<span class="ruby-identifier">str</span>,<span class="ruby-identifier">softbank_location_url_for</span>(<span class="ruby-identifier">options</span>))
|
456
|
-
114: <span class="ruby-keyword kw">end</span>
|
457
|
-
</pre>
|
458
|
-
</div>
|
459
|
-
</div>
|
460
|
-
</div>
|
461
|
-
|
462
|
-
<div id="method-M000045" class="method-detail">
|
463
|
-
<a name="M000045"></a>
|
464
|
-
|
465
|
-
<div class="method-heading">
|
466
|
-
<a href="#M000045" class="method-signature">
|
467
|
-
<span class="method-name">softbank_location_url_for</span><span class="method-args">(options={})</span>
|
468
|
-
</a>
|
469
|
-
</div>
|
470
|
-
|
471
|
-
<div class="method-description">
|
472
|
-
<p>
|
473
|
-
Softbank(含むVodafone
|
474
|
-
3G)で位置情報を取得するためのURLを返す。
|
475
|
-
</p>
|
476
|
-
<p><a class="source-toggle" href="#"
|
477
|
-
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
478
|
-
<div class="method-source-code" id="M000045-source">
|
479
|
-
<pre>
|
480
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 104</span>
|
481
|
-
104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">softbank_location_url_for</span>(<span class="ruby-identifier">options</span>={})
|
482
|
-
105: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
483
|
-
106: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
484
|
-
107: <span class="ruby-identifier">mode</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:mode</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">"auto"</span>
|
485
|
-
108: <span class="ruby-node">"location:#{mode}?url=#{url_for(options)}"</span>
|
486
|
-
109: <span class="ruby-keyword kw">end</span>
|
487
|
-
</pre>
|
488
|
-
</div>
|
489
|
-
</div>
|
490
|
-
</div>
|
491
|
-
|
492
|
-
<div id="method-M000048" class="method-detail">
|
493
|
-
<a name="M000048"></a>
|
494
|
-
|
495
|
-
<div class="method-heading">
|
496
|
-
<a href="#M000048" class="method-signature">
|
497
|
-
<span class="method-name">willcom_location_link_to</span><span class="method-args">(str,options={})</span>
|
498
|
-
</a>
|
499
|
-
</div>
|
500
|
-
|
501
|
-
<div class="method-description">
|
502
|
-
<p>
|
503
|
-
Willcom 基地局位置情報を取得するためのリンクを返す。
|
504
|
-
</p>
|
505
|
-
<p><a class="source-toggle" href="#"
|
506
|
-
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
507
|
-
<div class="method-source-code" id="M000048-source">
|
508
|
-
<pre>
|
509
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 124</span>
|
510
|
-
124: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">willcom_location_link_to</span>(<span class="ruby-identifier">str</span>,<span class="ruby-identifier">options</span>={})
|
511
|
-
125: <span class="ruby-identifier">link_to_url</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">willcom_location_url_for</span>(<span class="ruby-identifier">options</span>))
|
512
|
-
126: <span class="ruby-keyword kw">end</span>
|
513
|
-
</pre>
|
514
|
-
</div>
|
515
|
-
</div>
|
516
|
-
</div>
|
517
|
-
|
518
|
-
<div id="method-M000047" class="method-detail">
|
519
|
-
<a name="M000047"></a>
|
520
|
-
|
521
|
-
<div class="method-heading">
|
522
|
-
<a href="#M000047" class="method-signature">
|
523
|
-
<span class="method-name">willcom_location_url_for</span><span class="method-args">(options={})</span>
|
524
|
-
</a>
|
525
|
-
</div>
|
526
|
-
|
527
|
-
<div class="method-description">
|
528
|
-
<p>
|
529
|
-
Willcom 基地局位置情報を取得するためのURLを返す。
|
530
|
-
</p>
|
531
|
-
<p><a class="source-toggle" href="#"
|
532
|
-
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
533
|
-
<div class="method-source-code" id="M000047-source">
|
534
|
-
<pre>
|
535
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/helpers.rb, line 117</span>
|
536
|
-
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">willcom_location_url_for</span>(<span class="ruby-identifier">options</span>={})
|
537
|
-
118: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
538
|
-
119: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:only_path</span>] = <span class="ruby-keyword kw">false</span>
|
539
|
-
120: <span class="ruby-node">"http://location.request/dummy.cgi?my=#{url_for(options)}&pos=$location"</span>
|
540
|
-
121: <span class="ruby-keyword kw">end</span>
|
541
|
-
</pre>
|
542
|
-
</div>
|
543
|
-
</div>
|
544
|
-
</div>
|
545
|
-
|
546
|
-
|
547
|
-
</div>
|
548
|
-
|
549
|
-
|
550
|
-
</div>
|
551
|
-
|
552
|
-
|
553
|
-
<div id="validator-badges">
|
554
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
555
|
-
</div>
|
556
|
-
|
557
|
-
</body>
|
558
|
-
</html>
|