raspberry_pi_iot 0.0.8 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/doc/IoT.html +8 -6
- data/doc/{Bus.html → RaspberryPiIoT.html} +21 -26
- data/doc/_index.html +84 -77
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +92 -0
- data/doc/file.README.html +63 -29
- data/doc/file_list.html +5 -0
- data/doc/frames.html +1 -1
- data/doc/index.html +63 -29
- data/doc/method_list.html +170 -202
- data/doc/top-level-namespace.html +4 -6
- data/lib/bus.rb +0 -2
- data/lib/iot.rb +4 -2
- data/lib/iot/actuator.rb +7 -0
- data/lib/iot/bh1750.rb +54 -0
- data/lib/iot/binary_actuator.rb +7 -0
- data/lib/iot/binary_effector.rb +11 -0
- data/lib/iot/binary_receptor.rb +20 -0
- data/lib/iot/binary_sensor.rb +7 -0
- data/lib/iot/bmx_sensor.rb +73 -0
- data/lib/iot/button.rb +100 -0
- data/lib/iot/dht_sensor.rb +41 -0
- data/lib/iot/digital_actuator.rb +7 -0
- data/lib/iot/digital_effector.rb +67 -0
- data/lib/iot/digital_receptor.rb +17 -0
- data/lib/iot/digital_sensor.rb +7 -0
- data/lib/iot/ds18b20.rb +25 -0
- data/lib/iot/effector.rb +32 -0
- data/lib/iot/hcsr501.rb +8 -0
- data/lib/iot/humiture_sensor.rb +27 -0
- data/lib/iot/led.rb +64 -0
- data/lib/iot/led_pwm.rb +8 -0
- data/lib/iot/led_rgb.rb +86 -0
- data/lib/iot/max44009.rb +84 -0
- data/lib/iot/receptor.rb +38 -0
- data/lib/iot/sensor.rb +8 -0
- data/lib/iot/temperature_sensor.rb +51 -0
- data/lib/raspberry_pi.rb +46 -1
- data/lib/raspberry_pi_iot.rb +9 -3
- data/lib/raspberry_pi_iot/version.rb +3 -0
- data/lib/thermal_sensor.rb +2 -3
- data/test/test.sh +17 -0
- data/test/test.txt +173 -0
- data/test/test_Raspberry_Pi_IoT.rb +10 -0
- data/test/test_bh1750.rb +9 -4
- data/test/{standalone_test_bmp280.rb → test_bme280.rb} +24 -19
- data/test/test_bmp280.rb +52 -0
- data/test/test_button.rb +25 -14
- data/test/test_dht11.rb +3 -3
- data/test/test_dht22.rb +35 -0
- data/test/test_ds18b20.rb +4 -3
- data/test/test_helper.rb +6 -0
- data/test/test_info.rb +24 -3
- data/test/test_ky008.rb +41 -0
- data/test/test_led.rb +9 -9
- data/test/test_led_rgb.rb +28 -5
- data/test/test_max44009_gy49.rb +4 -4
- data/test/test_thermal.rb +27 -0
- metadata +103 -59
- data/doc/Actuator.html +0 -145
- data/doc/BH1750.html +0 -541
- data/doc/BME280.html +0 -276
- data/doc/BMP280.html +0 -276
- data/doc/BMxSensor.html +0 -557
- data/doc/BinaryActuator.html +0 -177
- data/doc/BinaryEffector.html +0 -246
- data/doc/BinaryReceptor.html +0 -387
- data/doc/BinarySensor.html +0 -168
- data/doc/Button.html +0 -986
- data/doc/DHT11.html +0 -287
- data/doc/DHT22.html +0 -287
- data/doc/DHTxxSensor.html +0 -361
- data/doc/DS18B20.html +0 -339
- data/doc/DigitalActuator.html +0 -164
- data/doc/DigitalEffector.html +0 -636
- data/doc/DigitalReceptor.html +0 -242
- data/doc/DigitalSensor.html +0 -162
- data/doc/Effector.html +0 -257
- data/doc/HCSR501.html +0 -172
- data/doc/HumitureSensor.html +0 -453
- data/doc/LED.html +0 -784
- data/doc/MAX44009.html +0 -830
- data/doc/RaspberryPi.html +0 -317
- data/doc/Receptor.html +0 -257
- data/doc/Sensor.html +0 -145
- data/doc/TemperatureSensor.html +0 -644
- data/lib/bh1750.rb +0 -46
- data/lib/binary_actuator.rb +0 -5
- data/lib/binary_effector.rb +0 -12
- data/lib/binary_receptor.rb +0 -19
- data/lib/binary_sensor.rb +0 -5
- data/lib/bmx_sensor.rb +0 -85
- data/lib/button.rb +0 -70
- data/lib/dht_sensor.rb +0 -36
- data/lib/digital_actuator.rb +0 -5
- data/lib/digital_effector.rb +0 -69
- data/lib/digital_receptor.rb +0 -16
- data/lib/digital_sensor.rb +0 -5
- data/lib/ds18b20.rb +0 -24
- data/lib/effector.rb +0 -32
- data/lib/hcsr501.rb +0 -7
- data/lib/humiture_sensor.rb +0 -26
- data/lib/led.rb +0 -58
- data/lib/led_pwm.rb +0 -6
- data/lib/led_rgb.rb +0 -101
- data/lib/max44009.rb +0 -77
- data/lib/receptor.rb +0 -33
- data/lib/temperature_sensor.rb +0 -49
data/doc/RaspberryPi.html
DELETED
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
7
|
-
Module: RaspberryPi
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.9.16
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
pathId = "RaspberryPi";
|
|
19
|
-
relpath = '';
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<div class="nav_wrap">
|
|
31
|
-
<iframe id="nav" src="class_list.html?1"></iframe>
|
|
32
|
-
<div id="resizer"></div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div id="main" tabindex="-1">
|
|
36
|
-
<div id="header">
|
|
37
|
-
<div id="menu">
|
|
38
|
-
|
|
39
|
-
<a href="_index.html">Index (R)</a> »
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<span class="title">RaspberryPi</span>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div id="search">
|
|
47
|
-
|
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
|
49
|
-
href="class_list.html">
|
|
50
|
-
|
|
51
|
-
<svg width="24" height="24">
|
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
-
</svg>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
</div>
|
|
59
|
-
<div class="clear"></div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div id="content"><h1>Module: RaspberryPi
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</h1>
|
|
67
|
-
<div class="box_info">
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<dl>
|
|
80
|
-
<dt>Defined in:</dt>
|
|
81
|
-
<dd>lib/thermal_sensor.rb<span class="defines">,<br />
|
|
82
|
-
lib/raspberry_pi.rb</span>
|
|
83
|
-
</dd>
|
|
84
|
-
</dl>
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<h2>Overview</h2><div class="docstring">
|
|
89
|
-
<div class="discussion">
|
|
90
|
-
|
|
91
|
-
<p>ThermalSensor - Raspberry Pi internal SoC temperature sensor</p>
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="tags">
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</div><h2>Defined Under Namespace</h2>
|
|
100
|
-
<p class="children">
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="RaspberryPi/ThermalSensor.html" title="RaspberryPi::ThermalSensor (class)">ThermalSensor</a></span>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</p>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<h2>
|
|
118
|
-
Class Method Summary
|
|
119
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
120
|
-
</h2>
|
|
121
|
-
|
|
122
|
-
<ul class="summary">
|
|
123
|
-
|
|
124
|
-
<li class="public ">
|
|
125
|
-
<span class="summary_signature">
|
|
126
|
-
|
|
127
|
-
<a href="#hardware_info-class_method" title="hardware_info (class method)">.<strong>hardware_info</strong> ⇒ Object </a>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</span>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<span class="summary_desc"><div class='inline'>
|
|
142
|
-
<p>Return hardware info as a hash.</p>
|
|
143
|
-
</div></span>
|
|
144
|
-
|
|
145
|
-
</li>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<li class="public ">
|
|
149
|
-
<span class="summary_signature">
|
|
150
|
-
|
|
151
|
-
<a href="#model_name-class_method" title="model_name (class method)">.<strong>model_name</strong>(source = 'proc') ⇒ Object </a>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
</span>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
<span class="summary_desc"><div class='inline'>
|
|
166
|
-
<p>Return the model name <a
|
|
167
|
-
href="https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version">www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version</a>/.</p>
|
|
168
|
-
</div></span>
|
|
169
|
-
|
|
170
|
-
</li>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
</ul>
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<div id="class_method_details" class="method_details_list">
|
|
179
|
-
<h2>Class Method Details</h2>
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
<div class="method_details first">
|
|
183
|
-
<h3 class="signature first" id="hardware_info-class_method">
|
|
184
|
-
|
|
185
|
-
.<strong>hardware_info</strong> ⇒ <tt>Object</tt>
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
</h3><div class="docstring">
|
|
192
|
-
<div class="discussion">
|
|
193
|
-
|
|
194
|
-
<p>Return hardware info as a hash</p>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
<div class="tags">
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
</div><table class="source_code">
|
|
203
|
-
<tr>
|
|
204
|
-
<td>
|
|
205
|
-
<pre class="lines">
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
17
|
|
209
|
-
18
|
|
210
|
-
19
|
|
211
|
-
20
|
|
212
|
-
21
|
|
213
|
-
22
|
|
214
|
-
23
|
|
215
|
-
24
|
|
216
|
-
25
|
|
217
|
-
26
|
|
218
|
-
27
|
|
219
|
-
28
|
|
220
|
-
29
|
|
221
|
-
30
|
|
222
|
-
31
|
|
223
|
-
32</pre>
|
|
224
|
-
</td>
|
|
225
|
-
<td>
|
|
226
|
-
<pre class="code"><span class="info file"># File 'lib/raspberry_pi.rb', line 17</span>
|
|
227
|
-
|
|
228
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hardware_info'>hardware_info</span>
|
|
229
|
-
<span class='id identifier rubyid_info'>info</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
230
|
-
<span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'> pinout | grep ': '</span><span class='tstring_end'>`</span></span>
|
|
231
|
-
<span class='id identifier rubyid_lines'>lines</span> <span class='op'><<</span> <span class='backtick'>`</span><span class='tstring_content'>cat /proc/cpuinfo | grep ': '</span><span class='tstring_end'>`</span></span>
|
|
232
|
-
<span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
|
|
233
|
-
<span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
234
|
-
<span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_strip!'>strip!</span>
|
|
235
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>processor</span><span class='tstring_end'>'</span></span>
|
|
236
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
237
|
-
<span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Cores</span><span class='tstring_end'>'</span></span>
|
|
238
|
-
<span class='kw'>end</span>
|
|
239
|
-
<span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CPU name</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>model name</span><span class='tstring_end'>'</span></span>
|
|
240
|
-
<span class='id identifier rubyid_info'>info</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
|
241
|
-
<span class='kw'>end</span>
|
|
242
|
-
<span class='id identifier rubyid_info'>info</span>
|
|
243
|
-
<span class='kw'>end</span></pre>
|
|
244
|
-
</td>
|
|
245
|
-
</tr>
|
|
246
|
-
</table>
|
|
247
|
-
</div>
|
|
248
|
-
|
|
249
|
-
<div class="method_details ">
|
|
250
|
-
<h3 class="signature " id="model_name-class_method">
|
|
251
|
-
|
|
252
|
-
.<strong>model_name</strong>(source = 'proc') ⇒ <tt>Object</tt>
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
</h3><div class="docstring">
|
|
259
|
-
<div class="discussion">
|
|
260
|
-
|
|
261
|
-
<p>Return the model name <a
|
|
262
|
-
href="https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version">www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version</a>/</p>
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
</div>
|
|
266
|
-
</div>
|
|
267
|
-
<div class="tags">
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
</div><table class="source_code">
|
|
271
|
-
<tr>
|
|
272
|
-
<td>
|
|
273
|
-
<pre class="lines">
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
5
|
|
277
|
-
6
|
|
278
|
-
7
|
|
279
|
-
8
|
|
280
|
-
9
|
|
281
|
-
10
|
|
282
|
-
11
|
|
283
|
-
12
|
|
284
|
-
13
|
|
285
|
-
14</pre>
|
|
286
|
-
</td>
|
|
287
|
-
<td>
|
|
288
|
-
<pre class="code"><span class="info file"># File 'lib/raspberry_pi.rb', line 5</span>
|
|
289
|
-
|
|
290
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_model_name'>model_name</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>proc</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
291
|
-
<span class='id identifier rubyid_info'>info</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='id identifier rubyid_source'>source</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>proc</span><span class='tstring_end'>'</span></span>
|
|
292
|
-
<span class='backtick'>`</span><span class='tstring_content'>cat /proc/device-tree/model</span><span class='tstring_end'>`</span></span>
|
|
293
|
-
<span class='kw'>elsif</span>
|
|
294
|
-
<span class='backtick'>`</span><span class='tstring_content'>pinout | grep -Eo "Pi Model[^|]+"</span><span class='tstring_end'>`</span></span>
|
|
295
|
-
<span class='kw'>else</span>
|
|
296
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>N/A</span><span class='tstring_end'>'</span></span>
|
|
297
|
-
<span class='kw'>end</span>
|
|
298
|
-
<span class='id identifier rubyid_info'>info</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
|
299
|
-
<span class='kw'>end</span></pre>
|
|
300
|
-
</td>
|
|
301
|
-
</tr>
|
|
302
|
-
</table>
|
|
303
|
-
</div>
|
|
304
|
-
|
|
305
|
-
</div>
|
|
306
|
-
|
|
307
|
-
</div>
|
|
308
|
-
|
|
309
|
-
<div id="footer">
|
|
310
|
-
Generated on Tue Dec 18 16:03:39 2018 by
|
|
311
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
312
|
-
0.9.16 (ruby-2.3.3).
|
|
313
|
-
</div>
|
|
314
|
-
|
|
315
|
-
</div>
|
|
316
|
-
</body>
|
|
317
|
-
</html>
|
data/doc/Receptor.html
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
7
|
-
Class: Receptor
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.9.16
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
pathId = "Receptor";
|
|
19
|
-
relpath = '';
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<div class="nav_wrap">
|
|
31
|
-
<iframe id="nav" src="class_list.html?1"></iframe>
|
|
32
|
-
<div id="resizer"></div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div id="main" tabindex="-1">
|
|
36
|
-
<div id="header">
|
|
37
|
-
<div id="menu">
|
|
38
|
-
|
|
39
|
-
<a href="_index.html">Index (R)</a> »
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<span class="title">Receptor</span>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div id="search">
|
|
47
|
-
|
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
|
49
|
-
href="class_list.html">
|
|
50
|
-
|
|
51
|
-
<svg width="24" height="24">
|
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
-
</svg>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
</div>
|
|
59
|
-
<div class="clear"></div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div id="content"><h1>Class: Receptor
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</h1>
|
|
67
|
-
<div class="box_info">
|
|
68
|
-
|
|
69
|
-
<dl>
|
|
70
|
-
<dt>Inherits:</dt>
|
|
71
|
-
<dd>
|
|
72
|
-
<span class="inheritName">Object</span>
|
|
73
|
-
|
|
74
|
-
<ul class="fullTree">
|
|
75
|
-
<li>Object</li>
|
|
76
|
-
|
|
77
|
-
<li class="next">Receptor</li>
|
|
78
|
-
|
|
79
|
-
</ul>
|
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
|
81
|
-
|
|
82
|
-
</dd>
|
|
83
|
-
</dl>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<dl>
|
|
96
|
-
<dt>Defined in:</dt>
|
|
97
|
-
<dd>lib/receptor.rb</dd>
|
|
98
|
-
</dl>
|
|
99
|
-
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
<h2>Overview</h2><div class="docstring">
|
|
103
|
-
<div class="discussion">
|
|
104
|
-
|
|
105
|
-
<p>Receptor - physical device that can provide info about real world</p>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
<div class="tags">
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</div><div id="subclasses">
|
|
114
|
-
<h2>Direct Known Subclasses</h2>
|
|
115
|
-
<p class="children"><span class='object_link'><a href="BinaryReceptor.html" title="BinaryReceptor (class)">BinaryReceptor</a></span>, <span class='object_link'><a href="DigitalReceptor.html" title="DigitalReceptor (class)">DigitalReceptor</a></span>, <span class='object_link'><a href="Sensor.html" title="Sensor (class)">Sensor</a></span></p>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<h2>
|
|
126
|
-
Instance Method Summary
|
|
127
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
128
|
-
</h2>
|
|
129
|
-
|
|
130
|
-
<ul class="summary">
|
|
131
|
-
|
|
132
|
-
<li class="public ">
|
|
133
|
-
<span class="summary_signature">
|
|
134
|
-
|
|
135
|
-
<a href="#model_name-instance_method" title="#model_name (instance method)">#<strong>model_name</strong> ⇒ Object </a>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</span>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
150
|
-
|
|
151
|
-
</li>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<li class="public ">
|
|
155
|
-
<span class="summary_signature">
|
|
156
|
-
|
|
157
|
-
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Object </a>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</span>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
172
|
-
|
|
173
|
-
</li>
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
</ul>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
<div id="instance_method_details" class="method_details_list">
|
|
182
|
-
<h2>Instance Method Details</h2>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
<div class="method_details first">
|
|
186
|
-
<h3 class="signature first" id="model_name-instance_method">
|
|
187
|
-
|
|
188
|
-
#<strong>model_name</strong> ⇒ <tt>Object</tt>
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</h3><table class="source_code">
|
|
195
|
-
<tr>
|
|
196
|
-
<td>
|
|
197
|
-
<pre class="lines">
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
16
|
|
201
|
-
17
|
|
202
|
-
18</pre>
|
|
203
|
-
</td>
|
|
204
|
-
<td>
|
|
205
|
-
<pre class="code"><span class="info file"># File 'lib/receptor.rb', line 16</span>
|
|
206
|
-
|
|
207
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_model_name'>model_name</span>
|
|
208
|
-
<span class='ivar'>@model</span>
|
|
209
|
-
<span class='kw'>end</span></pre>
|
|
210
|
-
</td>
|
|
211
|
-
</tr>
|
|
212
|
-
</table>
|
|
213
|
-
</div>
|
|
214
|
-
|
|
215
|
-
<div class="method_details ">
|
|
216
|
-
<h3 class="signature " id="name-instance_method">
|
|
217
|
-
|
|
218
|
-
#<strong>name</strong> ⇒ <tt>Object</tt>
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
</h3><table class="source_code">
|
|
225
|
-
<tr>
|
|
226
|
-
<td>
|
|
227
|
-
<pre class="lines">
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
12
|
|
231
|
-
13
|
|
232
|
-
14</pre>
|
|
233
|
-
</td>
|
|
234
|
-
<td>
|
|
235
|
-
<pre class="code"><span class="info file"># File 'lib/receptor.rb', line 12</span>
|
|
236
|
-
|
|
237
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
|
238
|
-
<span class='ivar'>@name</span>
|
|
239
|
-
<span class='kw'>end</span></pre>
|
|
240
|
-
</td>
|
|
241
|
-
</tr>
|
|
242
|
-
</table>
|
|
243
|
-
</div>
|
|
244
|
-
|
|
245
|
-
</div>
|
|
246
|
-
|
|
247
|
-
</div>
|
|
248
|
-
|
|
249
|
-
<div id="footer">
|
|
250
|
-
Generated on Tue Dec 18 16:03:49 2018 by
|
|
251
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
252
|
-
0.9.16 (ruby-2.3.3).
|
|
253
|
-
</div>
|
|
254
|
-
|
|
255
|
-
</div>
|
|
256
|
-
</body>
|
|
257
|
-
</html>
|