rsteamshot 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +35 -10
- data/lib/rsteamshot.rb +14 -0
- data/lib/rsteamshot/app.rb +126 -40
- data/lib/rsteamshot/configuration.rb +7 -0
- data/lib/rsteamshot/screenshot.rb +51 -0
- data/lib/rsteamshot/user.rb +23 -6
- data/lib/rsteamshot/version.rb +1 -1
- data/rsteamshot.gemspec +5 -0
- metadata +7 -56
- data/docs/README_md.html +0 -233
- data/docs/Rsteamshot.html +0 -147
- data/docs/Rsteamshot/App.html +0 -466
- data/docs/Rsteamshot/App/BadAppsFile.html +0 -106
- data/docs/Rsteamshot/Screenshot.html +0 -562
- data/docs/Rsteamshot/ScreenshotPage.html +0 -347
- data/docs/Rsteamshot/ScreenshotPaginator.html +0 -307
- data/docs/Rsteamshot/User.html +0 -309
- data/docs/created.rid +0 -9
- data/docs/css/fonts.css +0 -167
- data/docs/css/rdoc.css +0 -590
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +0 -242
- data/docs/js/darkfish.js +0 -161
- data/docs/js/jquery.js +0 -4
- data/docs/js/navigation.js +0 -142
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +0 -109
- data/docs/js/search_index.js +0 -1
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +0 -229
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +0 -179
@@ -1,106 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>class Rsteamshot::App::BadAppsFile - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "../../";
|
11
|
-
var index_rel_prefix = "../../";
|
12
|
-
</script>
|
13
|
-
|
14
|
-
<script src="../../js/jquery.js"></script>
|
15
|
-
<script src="../../js/darkfish.js"></script>
|
16
|
-
|
17
|
-
<link href="../../css/fonts.css" rel="stylesheet">
|
18
|
-
<link href="../../css/rdoc.css" rel="stylesheet">
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<body id="top" role="document" class="class">
|
23
|
-
<nav role="navigation">
|
24
|
-
<div id="project-navigation">
|
25
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
-
<h2>
|
27
|
-
<a href="../../index.html" rel="home">Home</a>
|
28
|
-
</h2>
|
29
|
-
|
30
|
-
<div id="table-of-contents-navigation">
|
31
|
-
<a href="../../table_of_contents.html#pages">Pages</a>
|
32
|
-
<a href="../../table_of_contents.html#classes">Classes</a>
|
33
|
-
<a href="../../table_of_contents.html#methods">Methods</a>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
-
<form action="#" method="get" accept-charset="utf-8">
|
39
|
-
<div id="search-field-wrapper">
|
40
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
-
aria-autocomplete="list" aria-controls="search-results"
|
42
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<ul id="search-results" aria-label="Search Results"
|
47
|
-
aria-busy="false" aria-expanded="false"
|
48
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
-
</form>
|
50
|
-
</div>
|
51
|
-
|
52
|
-
</div>
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<div id="class-metadata">
|
57
|
-
|
58
|
-
<div id="parent-class-section" class="nav-section">
|
59
|
-
<h3>Parent</h3>
|
60
|
-
|
61
|
-
|
62
|
-
<p class="link">StandardError
|
63
|
-
|
64
|
-
</div>
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
</div>
|
70
|
-
</nav>
|
71
|
-
|
72
|
-
<main role="main" aria-labelledby="class-Rsteamshot::App::BadAppsFile">
|
73
|
-
<h1 id="class-Rsteamshot::App::BadAppsFile" class="class">
|
74
|
-
class Rsteamshot::App::BadAppsFile
|
75
|
-
</h1>
|
76
|
-
|
77
|
-
<section class="description">
|
78
|
-
|
79
|
-
<p>Exception thrown by Rsteamshot::App#search when the given file is not a
|
80
|
-
valid file containing Steam apps.</p>
|
81
|
-
|
82
|
-
</section>
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
</section>
|
98
|
-
</main>
|
99
|
-
|
100
|
-
|
101
|
-
<footer id="validator-badges" role="contentinfo">
|
102
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
103
|
-
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
|
104
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
105
|
-
</footer>
|
106
|
-
|
@@ -1,562 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>class Rsteamshot::Screenshot - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "../";
|
11
|
-
var index_rel_prefix = "../";
|
12
|
-
</script>
|
13
|
-
|
14
|
-
<script src="../js/jquery.js"></script>
|
15
|
-
<script src="../js/darkfish.js"></script>
|
16
|
-
|
17
|
-
<link href="../css/fonts.css" rel="stylesheet">
|
18
|
-
<link href="../css/rdoc.css" rel="stylesheet">
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<body id="top" role="document" class="class">
|
23
|
-
<nav role="navigation">
|
24
|
-
<div id="project-navigation">
|
25
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
-
<h2>
|
27
|
-
<a href="../index.html" rel="home">Home</a>
|
28
|
-
</h2>
|
29
|
-
|
30
|
-
<div id="table-of-contents-navigation">
|
31
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
32
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
33
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
-
<form action="#" method="get" accept-charset="utf-8">
|
39
|
-
<div id="search-field-wrapper">
|
40
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
-
aria-autocomplete="list" aria-controls="search-results"
|
42
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<ul id="search-results" aria-label="Search Results"
|
47
|
-
aria-busy="false" aria-expanded="false"
|
48
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
-
</form>
|
50
|
-
</div>
|
51
|
-
|
52
|
-
</div>
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<div id="class-metadata">
|
57
|
-
<div id="sections-section" class="nav-section">
|
58
|
-
<h3>Sections</h3>
|
59
|
-
|
60
|
-
<ul class="link-list" role="directory">
|
61
|
-
|
62
|
-
<li><a href="#5Buntitled-5D"></a></li>
|
63
|
-
|
64
|
-
<li><a href="#Public">Public</a></li>
|
65
|
-
|
66
|
-
</ul>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<div id="parent-class-section" class="nav-section">
|
70
|
-
<h3>Parent</h3>
|
71
|
-
|
72
|
-
|
73
|
-
<p class="link">Object
|
74
|
-
|
75
|
-
</div>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<!-- Method Quickref -->
|
80
|
-
<div id="method-list-section" class="nav-section">
|
81
|
-
<h3>Methods</h3>
|
82
|
-
|
83
|
-
<ul class="link-list" role="directory">
|
84
|
-
|
85
|
-
<li ><a href="#method-c-new">::new</a>
|
86
|
-
|
87
|
-
<li ><a href="#method-i-inspect">#inspect</a>
|
88
|
-
|
89
|
-
<li ><a href="#method-i-to_h">#to_h</a>
|
90
|
-
|
91
|
-
<li ><a href="#method-i-to_json">#to_json</a>
|
92
|
-
|
93
|
-
</ul>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
</div>
|
97
|
-
</nav>
|
98
|
-
|
99
|
-
<main role="main" aria-labelledby="class-Rsteamshot::Screenshot">
|
100
|
-
<h1 id="class-Rsteamshot::Screenshot" class="class">
|
101
|
-
class Rsteamshot::Screenshot
|
102
|
-
</h1>
|
103
|
-
|
104
|
-
<section class="description">
|
105
|
-
|
106
|
-
<p>Represents an image that has been uploaded to Steam of a screenshot taken
|
107
|
-
in a Steam app.</p>
|
108
|
-
|
109
|
-
</section>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</section>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
<section id="Public" class="documentation-section">
|
129
|
-
|
130
|
-
<header class="documentation-section-title">
|
131
|
-
<h2>
|
132
|
-
Public
|
133
|
-
</h2>
|
134
|
-
<span class="section-click-top">
|
135
|
-
<a href="#top">↑ top</a>
|
136
|
-
</span>
|
137
|
-
</header>
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
<section class="attribute-method-details" class="method-section">
|
146
|
-
<header>
|
147
|
-
<h3>Attributes</h3>
|
148
|
-
</header>
|
149
|
-
|
150
|
-
|
151
|
-
<div id="attribute-i-comment_count" class="method-detail">
|
152
|
-
<div class="method-heading attribute-method-heading">
|
153
|
-
<span class="method-name">comment_count</span><span
|
154
|
-
class="attribute-access-type">[R]</span>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
<div class="method-description">
|
158
|
-
|
159
|
-
<h3 id="attribute-i-comment_count-label-Returns">Returns<span><a href="#attribute-i-comment_count-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
160
|
-
|
161
|
-
<p>Returns Integer count of how many comments people have left on this
|
162
|
-
screenshot.</p>
|
163
|
-
|
164
|
-
</div>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div id="attribute-i-date" class="method-detail">
|
168
|
-
<div class="method-heading attribute-method-heading">
|
169
|
-
<span class="method-name">date</span><span
|
170
|
-
class="attribute-access-type">[R]</span>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div class="method-description">
|
174
|
-
|
175
|
-
<h3 id="attribute-i-date-label-Returns">Returns<span><a href="#attribute-i-date-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
176
|
-
|
177
|
-
<p>Returns the DateTime when this screenshot was uploaded.</p>
|
178
|
-
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div id="attribute-i-details_url" class="method-detail">
|
183
|
-
<div class="method-heading attribute-method-heading">
|
184
|
-
<span class="method-name">details_url</span><span
|
185
|
-
class="attribute-access-type">[R]</span>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<div class="method-description">
|
189
|
-
|
190
|
-
<h3 id="attribute-i-details_url-label-Returns">Returns<span><a href="#attribute-i-details_url-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
191
|
-
|
192
|
-
<p>Returns String URL to the Steam page that shows details about this
|
193
|
-
screenshot.</p>
|
194
|
-
|
195
|
-
</div>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div id="attribute-i-file_size" class="method-detail">
|
199
|
-
<div class="method-heading attribute-method-heading">
|
200
|
-
<span class="method-name">file_size</span><span
|
201
|
-
class="attribute-access-type">[R]</span>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
<div class="method-description">
|
205
|
-
|
206
|
-
<h3 id="attribute-i-file_size-label-Returns">Returns<span><a href="#attribute-i-file_size-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
207
|
-
|
208
|
-
<p>Returns a String describing how large the screenshot is, e.g., 0.547 MB.</p>
|
209
|
-
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
<div id="attribute-i-full_size_url" class="method-detail">
|
214
|
-
<div class="method-heading attribute-method-heading">
|
215
|
-
<span class="method-name">full_size_url</span><span
|
216
|
-
class="attribute-access-type">[R]</span>
|
217
|
-
</div>
|
218
|
-
|
219
|
-
<div class="method-description">
|
220
|
-
|
221
|
-
<h3 id="attribute-i-full_size_url-label-Returns">Returns<span><a href="#attribute-i-full_size_url-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
222
|
-
|
223
|
-
<p>Returns String URL to the full-size image.</p>
|
224
|
-
|
225
|
-
</div>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
<div id="attribute-i-height" class="method-detail">
|
229
|
-
<div class="method-heading attribute-method-heading">
|
230
|
-
<span class="method-name">height</span><span
|
231
|
-
class="attribute-access-type">[R]</span>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
<div class="method-description">
|
235
|
-
|
236
|
-
<h3 id="attribute-i-height-label-Returns">Returns<span><a href="#attribute-i-height-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
237
|
-
|
238
|
-
<p>Returns Integer pixel height of the screenshot.</p>
|
239
|
-
|
240
|
-
</div>
|
241
|
-
</div>
|
242
|
-
|
243
|
-
<div id="attribute-i-like_count" class="method-detail">
|
244
|
-
<div class="method-heading attribute-method-heading">
|
245
|
-
<span class="method-name">like_count</span><span
|
246
|
-
class="attribute-access-type">[R]</span>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div class="method-description">
|
250
|
-
|
251
|
-
<h3 id="attribute-i-like_count-label-Returns">Returns<span><a href="#attribute-i-like_count-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
252
|
-
|
253
|
-
<p>Returns Integer count of how many people have voted for this screenshot.</p>
|
254
|
-
|
255
|
-
</div>
|
256
|
-
</div>
|
257
|
-
|
258
|
-
<div id="attribute-i-medium_url" class="method-detail">
|
259
|
-
<div class="method-heading attribute-method-heading">
|
260
|
-
<span class="method-name">medium_url</span><span
|
261
|
-
class="attribute-access-type">[R]</span>
|
262
|
-
</div>
|
263
|
-
|
264
|
-
<div class="method-description">
|
265
|
-
|
266
|
-
<h3 id="attribute-i-medium_url-label-Returns">Returns<span><a href="#attribute-i-medium_url-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
267
|
-
|
268
|
-
<p>Returns String URL to a medium-size version of the image.</p>
|
269
|
-
|
270
|
-
</div>
|
271
|
-
</div>
|
272
|
-
|
273
|
-
<div id="attribute-i-title" class="method-detail">
|
274
|
-
<div class="method-heading attribute-method-heading">
|
275
|
-
<span class="method-name">title</span><span
|
276
|
-
class="attribute-access-type">[R]</span>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
<div class="method-description">
|
280
|
-
|
281
|
-
<h3 id="attribute-i-title-label-Returns">Returns<span><a href="#attribute-i-title-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
282
|
-
|
283
|
-
<p>Returns a String of how the user described this screenshot, or nil.</p>
|
284
|
-
|
285
|
-
</div>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
<div id="attribute-i-user_name" class="method-detail">
|
289
|
-
<div class="method-heading attribute-method-heading">
|
290
|
-
<span class="method-name">user_name</span><span
|
291
|
-
class="attribute-access-type">[R]</span>
|
292
|
-
</div>
|
293
|
-
|
294
|
-
<div class="method-description">
|
295
|
-
|
296
|
-
<h3 id="attribute-i-user_name-label-Returns">Returns<span><a href="#attribute-i-user_name-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
297
|
-
|
298
|
-
<p>Returns String name of the Steam user who uploaded the screenshot.</p>
|
299
|
-
|
300
|
-
</div>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
<div id="attribute-i-user_url" class="method-detail">
|
304
|
-
<div class="method-heading attribute-method-heading">
|
305
|
-
<span class="method-name">user_url</span><span
|
306
|
-
class="attribute-access-type">[R]</span>
|
307
|
-
</div>
|
308
|
-
|
309
|
-
<div class="method-description">
|
310
|
-
|
311
|
-
<h3 id="attribute-i-user_url-label-Returns">Returns<span><a href="#attribute-i-user_url-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
312
|
-
|
313
|
-
<p>Returns String URL to the profile of the Steam user who uploaded the
|
314
|
-
screenshot.</p>
|
315
|
-
|
316
|
-
</div>
|
317
|
-
</div>
|
318
|
-
|
319
|
-
<div id="attribute-i-width" class="method-detail">
|
320
|
-
<div class="method-heading attribute-method-heading">
|
321
|
-
<span class="method-name">width</span><span
|
322
|
-
class="attribute-access-type">[R]</span>
|
323
|
-
</div>
|
324
|
-
|
325
|
-
<div class="method-description">
|
326
|
-
|
327
|
-
<h3 id="attribute-i-width-label-Returns">Returns<span><a href="#attribute-i-width-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
328
|
-
|
329
|
-
<p>Returns Integer pixel width of the screenshot.</p>
|
330
|
-
|
331
|
-
</div>
|
332
|
-
</div>
|
333
|
-
|
334
|
-
</section>
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
<section id="public-class-Public-method-details" class="method-section">
|
339
|
-
<header>
|
340
|
-
<h3>Public Class Methods</h3>
|
341
|
-
</header>
|
342
|
-
|
343
|
-
|
344
|
-
<div id="method-c-new" class="method-detail ">
|
345
|
-
|
346
|
-
<div class="method-heading">
|
347
|
-
<span class="method-name">new</span><span
|
348
|
-
class="method-args">(attrs = {})</span>
|
349
|
-
|
350
|
-
<span class="method-click-advice">click to toggle source</span>
|
351
|
-
|
352
|
-
</div>
|
353
|
-
|
354
|
-
|
355
|
-
<div class="method-description">
|
356
|
-
|
357
|
-
<p>Initialize a screenshot with the given attributes.</p>
|
358
|
-
<dl class="rdoc-list note-list"><dt>attrs
|
359
|
-
<dd>
|
360
|
-
<p>the Hash of attributes for this screenshot</p>
|
361
|
-
<dl class="rdoc-list note-list"><dt>:title
|
362
|
-
<dd>
|
363
|
-
<p>how the user described this screenshot</p>
|
364
|
-
</dd><dt>:details_url
|
365
|
-
<dd>
|
366
|
-
<p>URL to the Steam page that shows details about this screenshot</p>
|
367
|
-
</dd><dt>:full_size_url
|
368
|
-
<dd>
|
369
|
-
<p>URL to the full-size image</p>
|
370
|
-
</dd><dt>:medium_url
|
371
|
-
<dd>
|
372
|
-
<p>URL to a medium-size version of the image</p>
|
373
|
-
</dd><dt>:user_name
|
374
|
-
<dd>
|
375
|
-
<p>name of the Steam user who uploaded the screenshot</p>
|
376
|
-
</dd><dt>:user_url
|
377
|
-
<dd>
|
378
|
-
<p>URL to the profile of the Steam user who uploaded the screenshot</p>
|
379
|
-
</dd><dt>:date
|
380
|
-
<dd>
|
381
|
-
<p>the date and time when this screenshot was uploaded</p>
|
382
|
-
</dd><dt>:file_size
|
383
|
-
<dd>
|
384
|
-
<p>describes how large the screenshot is, e.g., 0.547 MB</p>
|
385
|
-
</dd><dt>:width
|
386
|
-
<dd>
|
387
|
-
<p>pixel width of the screenshot</p>
|
388
|
-
</dd><dt>:height
|
389
|
-
<dd>
|
390
|
-
<p>pixel height of the screenshot</p>
|
391
|
-
</dd><dt>:like_count
|
392
|
-
<dd>
|
393
|
-
<p>number of likes this screenshot has on Steam</p>
|
394
|
-
</dd><dt>:comment_count
|
395
|
-
<dd>
|
396
|
-
<p>number of comments this screenshot has received on Steam</p>
|
397
|
-
</dd></dl>
|
398
|
-
</dd></dl>
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
<div class="method-source-code" id="new-source">
|
404
|
-
<pre><span class="ruby-comment"># File lib/rsteamshot/screenshot.rb, line 56</span>
|
405
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">attrs</span> = {})
|
406
|
-
<span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">"@#{key}"</span>, <span class="ruby-identifier">value</span>) }
|
407
|
-
|
408
|
-
<span class="ruby-identifier">fetch_details</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">has_details?</span>
|
409
|
-
<span class="ruby-keyword">end</span></pre>
|
410
|
-
</div>
|
411
|
-
|
412
|
-
</div>
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
</div>
|
418
|
-
|
419
|
-
|
420
|
-
</section>
|
421
|
-
|
422
|
-
<section id="public-instance-Public-method-details" class="method-section">
|
423
|
-
<header>
|
424
|
-
<h3>Public Instance Methods</h3>
|
425
|
-
</header>
|
426
|
-
|
427
|
-
|
428
|
-
<div id="method-i-inspect" class="method-detail ">
|
429
|
-
|
430
|
-
<div class="method-heading">
|
431
|
-
<span class="method-name">inspect</span><span
|
432
|
-
class="method-args">()</span>
|
433
|
-
|
434
|
-
<span class="method-click-advice">click to toggle source</span>
|
435
|
-
|
436
|
-
</div>
|
437
|
-
|
438
|
-
|
439
|
-
<div class="method-description">
|
440
|
-
|
441
|
-
<p>A detailed representation of this screenshot.</p>
|
442
|
-
|
443
|
-
<h3 id="method-i-inspect-label-Returns">Returns<span><a href="#method-i-inspect-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
444
|
-
|
445
|
-
<p>Returns a String.</p>
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
<div class="method-source-code" id="inspect-source">
|
451
|
-
<pre><span class="ruby-comment"># File lib/rsteamshot/screenshot.rb, line 91</span>
|
452
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">inspect</span>
|
453
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-string">'<'</span> <span class="ruby-operator">+</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">to_h</span>) <span class="ruby-operator">+</span> <span class="ruby-string">'>'</span>
|
454
|
-
<span class="ruby-keyword">end</span></pre>
|
455
|
-
</div>
|
456
|
-
|
457
|
-
</div>
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
</div>
|
463
|
-
|
464
|
-
|
465
|
-
<div id="method-i-to_h" class="method-detail ">
|
466
|
-
|
467
|
-
<div class="method-heading">
|
468
|
-
<span class="method-name">to_h</span><span
|
469
|
-
class="method-args">()</span>
|
470
|
-
|
471
|
-
<span class="method-click-advice">click to toggle source</span>
|
472
|
-
|
473
|
-
</div>
|
474
|
-
|
475
|
-
|
476
|
-
<div class="method-description">
|
477
|
-
|
478
|
-
<p>Get a hash representation of this screenshot.</p>
|
479
|
-
|
480
|
-
<h3 id="method-i-to_h-label-Returns">Returns<span><a href="#method-i-to_h-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
481
|
-
|
482
|
-
<p>Returns a Hash.</p>
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
<div class="method-source-code" id="to_h-source">
|
488
|
-
<pre><span class="ruby-comment"># File lib/rsteamshot/screenshot.rb, line 65</span>
|
489
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_h</span>
|
490
|
-
<span class="ruby-identifier">result</span> = { <span class="ruby-identifier">details_url</span><span class="ruby-operator">:</span> <span class="ruby-identifier">details_url</span> }
|
491
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:title</span>] = <span class="ruby-identifier">title</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">title</span>
|
492
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:full_size_url</span>] = <span class="ruby-identifier">full_size_url</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">full_size_url</span>
|
493
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:medium_url</span>] = <span class="ruby-identifier">medium_url</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">medium_url</span>
|
494
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:user_name</span>] = <span class="ruby-identifier">user_name</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">user_name</span>
|
495
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:user_url</span>] = <span class="ruby-identifier">user_url</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">user_url</span>
|
496
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:date</span>] = <span class="ruby-identifier">date</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">date</span>
|
497
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:file_size</span>] = <span class="ruby-identifier">file_size</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">file_size</span>
|
498
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:width</span>] = <span class="ruby-identifier">width</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">width</span>
|
499
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:height</span>] = <span class="ruby-identifier">height</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">height</span>
|
500
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:like_count</span>] = <span class="ruby-identifier">like_count</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">like_count</span>
|
501
|
-
<span class="ruby-identifier">result</span>[<span class="ruby-value">:comment_count</span>] = <span class="ruby-identifier">comment_count</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">comment_count</span>
|
502
|
-
<span class="ruby-identifier">result</span>
|
503
|
-
<span class="ruby-keyword">end</span></pre>
|
504
|
-
</div>
|
505
|
-
|
506
|
-
</div>
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
</div>
|
512
|
-
|
513
|
-
|
514
|
-
<div id="method-i-to_json" class="method-detail ">
|
515
|
-
|
516
|
-
<div class="method-heading">
|
517
|
-
<span class="method-name">to_json</span><span
|
518
|
-
class="method-args">()</span>
|
519
|
-
|
520
|
-
<span class="method-click-advice">click to toggle source</span>
|
521
|
-
|
522
|
-
</div>
|
523
|
-
|
524
|
-
|
525
|
-
<div class="method-description">
|
526
|
-
|
527
|
-
<p>Get a JSON representation of this screenshot.</p>
|
528
|
-
|
529
|
-
<h3 id="method-i-to_json-label-Returns">Returns<span><a href="#method-i-to_json-label-Returns">¶</a> <a href="#top">↑</a></span></h3>
|
530
|
-
|
531
|
-
<p>Returns a String.</p>
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
<div class="method-source-code" id="to_json-source">
|
537
|
-
<pre><span class="ruby-comment"># File lib/rsteamshot/screenshot.rb, line 84</span>
|
538
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>
|
539
|
-
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">to_h</span>)
|
540
|
-
<span class="ruby-keyword">end</span></pre>
|
541
|
-
</div>
|
542
|
-
|
543
|
-
</div>
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
</div>
|
549
|
-
|
550
|
-
|
551
|
-
</section>
|
552
|
-
|
553
|
-
</section>
|
554
|
-
</main>
|
555
|
-
|
556
|
-
|
557
|
-
<footer id="validator-badges" role="contentinfo">
|
558
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
559
|
-
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
|
560
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
561
|
-
</footer>
|
562
|
-
|