shep 0.1.0.pre.alpha0
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 +7 -0
- data/Copyright.txt +8 -0
- data/LICENSE.txt +697 -0
- data/README.md +101 -0
- data/Rakefile +52 -0
- data/doc/Shep/Entity/Account.html +193 -0
- data/doc/Shep/Entity/Context.html +165 -0
- data/doc/Shep/Entity/CustomEmoji.html +171 -0
- data/doc/Shep/Entity/MediaAttachment.html +175 -0
- data/doc/Shep/Entity/Notification.html +171 -0
- data/doc/Shep/Entity/Status.html +217 -0
- data/doc/Shep/Entity/StatusSource.html +167 -0
- data/doc/Shep/Entity/Status_Application.html +167 -0
- data/doc/Shep/Entity/Status_Mention.html +169 -0
- data/doc/Shep/Entity/Status_Tag.html +165 -0
- data/doc/Shep/Entity.html +1457 -0
- data/doc/Shep/Error/Caller.html +147 -0
- data/doc/Shep/Error/Http.html +329 -0
- data/doc/Shep/Error/Remote.html +143 -0
- data/doc/Shep/Error/Server.html +147 -0
- data/doc/Shep/Error/Type.html +233 -0
- data/doc/Shep/Error.html +149 -0
- data/doc/Shep/Session.html +4094 -0
- data/doc/Shep.html +128 -0
- data/doc/_index.html +300 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +497 -0
- data/doc/file.README.html +159 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +300 -0
- data/doc/js/app.js +314 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +387 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/shep/entities.rb +164 -0
- data/lib/shep/entity_base.rb +378 -0
- data/lib/shep/exceptions.rb +78 -0
- data/lib/shep/session.rb +970 -0
- data/lib/shep/typeboxes.rb +180 -0
- data/lib/shep.rb +22 -0
- data/run_rake_test.example.sh +46 -0
- data/shep.gemspec +28 -0
- data/spec/data/smallimg.jpg +0 -0
- data/spec/data/smallish.jpg +0 -0
- data/spec/entity_common.rb +120 -0
- data/spec/entity_t1_spec.rb +168 -0
- data/spec/entity_t2_spec.rb +123 -0
- data/spec/entity_t3_spec.rb +30 -0
- data/spec/json_objects/account.1.json +25 -0
- data/spec/json_objects/account.2.json +36 -0
- data/spec/json_objects/status.1.json +85 -0
- data/spec/json_objects/status.2.json +59 -0
- data/spec/json_objects/status.3.json +95 -0
- data/spec/json_objects/status.4.json +95 -0
- data/spec/json_objects/status.5.json +74 -0
- data/spec/json_objects/status.6.json +140 -0
- data/spec/json_objects/status.7.json +84 -0
- data/spec/session_reader_1_unauth_spec.rb +366 -0
- data/spec/session_reader_2_auth_spec.rb +96 -0
- data/spec/session_writer_spec.rb +183 -0
- data/spec/spec_helper.rb +73 -0
- data/yard_helper.rb +30 -0
- metadata +154 -0
|
@@ -0,0 +1,175 @@
|
|
|
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: Shep::Entity::MediaAttachment
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.34
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
pathId = "Shep::Entity::MediaAttachment";
|
|
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 (M)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Shep.html" title="Shep (module)">Shep</a></span></span> » <span class='title'><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Entity</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">MediaAttachment</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: Shep::Entity::MediaAttachment
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">Shep::Entity::MediaAttachment</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>lib/shep/entities.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Ruby object representing a Mastodon <code>MediaAttachment</code> object:</p>
|
|
108
|
+
<ul><li>
|
|
109
|
+
<p>id (String)</p>
|
|
110
|
+
</li><li>
|
|
111
|
+
<p>type (String)</p>
|
|
112
|
+
</li><li>
|
|
113
|
+
<p>url (URI)</p>
|
|
114
|
+
</li><li>
|
|
115
|
+
<p>preview_uri (URI)</p>
|
|
116
|
+
</li><li>
|
|
117
|
+
<p>remote_url (URI)</p>
|
|
118
|
+
</li><li>
|
|
119
|
+
<p>description (String)</p>
|
|
120
|
+
</li><li>
|
|
121
|
+
<p>blurhash (String)</p>
|
|
122
|
+
</li></ul>
|
|
123
|
+
|
|
124
|
+
<p>See <code>Shep::Entity</code> for an overview.</p>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="tags">
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<p class="tag_title">See Also:</p>
|
|
133
|
+
<ul class="see">
|
|
134
|
+
|
|
135
|
+
<li><a href="https://docs.joinmastodon.org/entities/Account/" target="_parent" title="https://docs.joinmastodon.org/entities/Account/">https://docs.joinmastodon.org/entities/Account/</a></li>
|
|
136
|
+
|
|
137
|
+
</ul>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
<h2>Method Summary</h2>
|
|
154
|
+
|
|
155
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></h3>
|
|
156
|
+
<p class="inherited"><span class='object_link'><a href="../Entity.html#==-instance_method" title="Shep::Entity#== (method)">#==</a></span>, <span class='object_link'><a href="../Entity.html#[]-instance_method" title="Shep::Entity#[] (method)">#[]</a></span>, <span class='object_link'><a href="../Entity.html#[]=-instance_method" title="Shep::Entity#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="../Entity.html#fields-class_method" title="Shep::Entity.fields (method)">fields</a></span>, <span class='object_link'><a href="../Entity.html#from-class_method" title="Shep::Entity.from (method)">from</a></span>, <span class='object_link'><a href="../Entity.html#initialize-instance_method" title="Shep::Entity#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Entity.html#print-instance_method" title="Shep::Entity#print (method)">#print</a></span>, <span class='object_link'><a href="../Entity.html#set_from_hash!-instance_method" title="Shep::Entity#set_from_hash! (method)">#set_from_hash!</a></span>, <span class='object_link'><a href="../Entity.html#to_h-instance_method" title="Shep::Entity#to_h (method)">#to_h</a></span>, <span class='object_link'><a href="../Entity.html#to_long_s-instance_method" title="Shep::Entity#to_long_s (method)">#to_long_s</a></span>, <span class='object_link'><a href="../Entity.html#to_s-instance_method" title="Shep::Entity#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="../Entity.html#with-class_method" title="Shep::Entity.with (method)">with</a></span></p>
|
|
157
|
+
<div id="constructor_details" class="method_details_list">
|
|
158
|
+
<h2>Constructor Details</h2>
|
|
159
|
+
|
|
160
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Entity.html#initialize-instance_method" title="Shep::Entity#initialize (method)">Shep::Entity</a></span></p>
|
|
161
|
+
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<div id="footer">
|
|
168
|
+
Generated on Sun Jun 4 13:40:32 2023 by
|
|
169
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
170
|
+
0.9.34 (ruby-3.1.0).
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
</div>
|
|
174
|
+
</body>
|
|
175
|
+
</html>
|
|
@@ -0,0 +1,171 @@
|
|
|
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: Shep::Entity::Notification
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.34
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
pathId = "Shep::Entity::Notification";
|
|
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 (N)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Shep.html" title="Shep (module)">Shep</a></span></span> » <span class='title'><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Entity</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">Notification</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: Shep::Entity::Notification
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">Shep::Entity::Notification</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>lib/shep/entities.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Ruby object representing a Mastodon <code>Notification</code> object:</p>
|
|
108
|
+
<ul><li>
|
|
109
|
+
<p>id (String)</p>
|
|
110
|
+
</li><li>
|
|
111
|
+
<p>type (String)</p>
|
|
112
|
+
</li><li>
|
|
113
|
+
<p>created_at (Time)</p>
|
|
114
|
+
</li><li>
|
|
115
|
+
<p>account (Entity::Account)</p>
|
|
116
|
+
</li><li>
|
|
117
|
+
<p>status (Entity::Status)</p>
|
|
118
|
+
</li></ul>
|
|
119
|
+
|
|
120
|
+
<p>See <code>Shep::Entity</code> for an overview.</p>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="tags">
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<p class="tag_title">See Also:</p>
|
|
129
|
+
<ul class="see">
|
|
130
|
+
|
|
131
|
+
<li><a href="https://docs.joinmastodon.org/entities/Notification/" target="_parent" title="https://docs.joinmastodon.org/entities/Notification/">https://docs.joinmastodon.org/entities/Notification/</a></li>
|
|
132
|
+
|
|
133
|
+
</ul>
|
|
134
|
+
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<h2>Method Summary</h2>
|
|
150
|
+
|
|
151
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></h3>
|
|
152
|
+
<p class="inherited"><span class='object_link'><a href="../Entity.html#==-instance_method" title="Shep::Entity#== (method)">#==</a></span>, <span class='object_link'><a href="../Entity.html#[]-instance_method" title="Shep::Entity#[] (method)">#[]</a></span>, <span class='object_link'><a href="../Entity.html#[]=-instance_method" title="Shep::Entity#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="../Entity.html#fields-class_method" title="Shep::Entity.fields (method)">fields</a></span>, <span class='object_link'><a href="../Entity.html#from-class_method" title="Shep::Entity.from (method)">from</a></span>, <span class='object_link'><a href="../Entity.html#initialize-instance_method" title="Shep::Entity#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Entity.html#print-instance_method" title="Shep::Entity#print (method)">#print</a></span>, <span class='object_link'><a href="../Entity.html#set_from_hash!-instance_method" title="Shep::Entity#set_from_hash! (method)">#set_from_hash!</a></span>, <span class='object_link'><a href="../Entity.html#to_h-instance_method" title="Shep::Entity#to_h (method)">#to_h</a></span>, <span class='object_link'><a href="../Entity.html#to_long_s-instance_method" title="Shep::Entity#to_long_s (method)">#to_long_s</a></span>, <span class='object_link'><a href="../Entity.html#to_s-instance_method" title="Shep::Entity#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="../Entity.html#with-class_method" title="Shep::Entity.with (method)">with</a></span></p>
|
|
153
|
+
<div id="constructor_details" class="method_details_list">
|
|
154
|
+
<h2>Constructor Details</h2>
|
|
155
|
+
|
|
156
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Entity.html#initialize-instance_method" title="Shep::Entity#initialize (method)">Shep::Entity</a></span></p>
|
|
157
|
+
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<div id="footer">
|
|
164
|
+
Generated on Sun Jun 4 13:40:32 2023 by
|
|
165
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
166
|
+
0.9.34 (ruby-3.1.0).
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
</div>
|
|
170
|
+
</body>
|
|
171
|
+
</html>
|
|
@@ -0,0 +1,217 @@
|
|
|
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: Shep::Entity::Status
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.34
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
pathId = "Shep::Entity::Status";
|
|
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 (S)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Shep.html" title="Shep (module)">Shep</a></span></span> » <span class='title'><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Entity</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">Status</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: Shep::Entity::Status
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">Shep::Entity::Status</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>lib/shep/entities.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Ruby object representing a Mastodon <code>Status</code> object:</p>
|
|
108
|
+
<ul><li>
|
|
109
|
+
<p>id (String)</p>
|
|
110
|
+
</li><li>
|
|
111
|
+
<p>uri (URI)</p>
|
|
112
|
+
</li><li>
|
|
113
|
+
<p>created_at (Time)</p>
|
|
114
|
+
</li><li>
|
|
115
|
+
<p>account (Entity::Account)</p>
|
|
116
|
+
</li><li>
|
|
117
|
+
<p>content (String)</p>
|
|
118
|
+
</li><li>
|
|
119
|
+
<p>visibility (String)</p>
|
|
120
|
+
</li><li>
|
|
121
|
+
<p>sensitive (Boolean)</p>
|
|
122
|
+
</li><li>
|
|
123
|
+
<p>spoiler_text (String)</p>
|
|
124
|
+
</li><li>
|
|
125
|
+
<p>media_attachments (Array<Entity::MediaAttachment>)</p>
|
|
126
|
+
</li><li>
|
|
127
|
+
<p>applications (Entity::Status_Application)</p>
|
|
128
|
+
</li><li>
|
|
129
|
+
<p>mentions (Array<Entity::Status_Mention>)</p>
|
|
130
|
+
</li><li>
|
|
131
|
+
<p>tags (Array<Entity::Status_Tag>)</p>
|
|
132
|
+
</li><li>
|
|
133
|
+
<p>emojis (Array<Entity::CustomEmoji>)</p>
|
|
134
|
+
</li><li>
|
|
135
|
+
<p>reblogs_count (Integer)</p>
|
|
136
|
+
</li><li>
|
|
137
|
+
<p>favourites_count (Integer)</p>
|
|
138
|
+
</li><li>
|
|
139
|
+
<p>replies_count (Integer)</p>
|
|
140
|
+
</li><li>
|
|
141
|
+
<p>url (URI)</p>
|
|
142
|
+
</li><li>
|
|
143
|
+
<p>in_reply_to_id (String)</p>
|
|
144
|
+
</li><li>
|
|
145
|
+
<p>in_reply_to_account_id (String)</p>
|
|
146
|
+
</li><li>
|
|
147
|
+
<p>reblog (Entity::Status)</p>
|
|
148
|
+
</li><li>
|
|
149
|
+
<p>language (String)</p>
|
|
150
|
+
</li><li>
|
|
151
|
+
<p>text (String)</p>
|
|
152
|
+
</li><li>
|
|
153
|
+
<p>edited_at (Time)</p>
|
|
154
|
+
</li><li>
|
|
155
|
+
<p>favourited (Boolean)</p>
|
|
156
|
+
</li><li>
|
|
157
|
+
<p>reblogged (Boolean)</p>
|
|
158
|
+
</li><li>
|
|
159
|
+
<p>muted (Boolean)</p>
|
|
160
|
+
</li><li>
|
|
161
|
+
<p>bookmarked (Boolean)</p>
|
|
162
|
+
</li><li>
|
|
163
|
+
<p>pinned (Boolean)</p>
|
|
164
|
+
</li></ul>
|
|
165
|
+
|
|
166
|
+
<p>See <code>Shep::Entity</code> for an overview.</p>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="tags">
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
<p class="tag_title">See Also:</p>
|
|
175
|
+
<ul class="see">
|
|
176
|
+
|
|
177
|
+
<li><a href="https://docs.joinmastodon.org/entities/Status/" target="_parent" title="https://docs.joinmastodon.org/entities/Status/">https://docs.joinmastodon.org/entities/Status/</a></li>
|
|
178
|
+
|
|
179
|
+
</ul>
|
|
180
|
+
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<h2>Method Summary</h2>
|
|
196
|
+
|
|
197
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Entity.html" title="Shep::Entity (class)">Shep::Entity</a></span></h3>
|
|
198
|
+
<p class="inherited"><span class='object_link'><a href="../Entity.html#==-instance_method" title="Shep::Entity#== (method)">#==</a></span>, <span class='object_link'><a href="../Entity.html#[]-instance_method" title="Shep::Entity#[] (method)">#[]</a></span>, <span class='object_link'><a href="../Entity.html#[]=-instance_method" title="Shep::Entity#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="../Entity.html#fields-class_method" title="Shep::Entity.fields (method)">fields</a></span>, <span class='object_link'><a href="../Entity.html#from-class_method" title="Shep::Entity.from (method)">from</a></span>, <span class='object_link'><a href="../Entity.html#initialize-instance_method" title="Shep::Entity#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Entity.html#print-instance_method" title="Shep::Entity#print (method)">#print</a></span>, <span class='object_link'><a href="../Entity.html#set_from_hash!-instance_method" title="Shep::Entity#set_from_hash! (method)">#set_from_hash!</a></span>, <span class='object_link'><a href="../Entity.html#to_h-instance_method" title="Shep::Entity#to_h (method)">#to_h</a></span>, <span class='object_link'><a href="../Entity.html#to_long_s-instance_method" title="Shep::Entity#to_long_s (method)">#to_long_s</a></span>, <span class='object_link'><a href="../Entity.html#to_s-instance_method" title="Shep::Entity#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="../Entity.html#with-class_method" title="Shep::Entity.with (method)">with</a></span></p>
|
|
199
|
+
<div id="constructor_details" class="method_details_list">
|
|
200
|
+
<h2>Constructor Details</h2>
|
|
201
|
+
|
|
202
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Entity.html#initialize-instance_method" title="Shep::Entity#initialize (method)">Shep::Entity</a></span></p>
|
|
203
|
+
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
<div id="footer">
|
|
210
|
+
Generated on Sun Jun 4 13:40:32 2023 by
|
|
211
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
212
|
+
0.9.34 (ruby-3.1.0).
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
</div>
|
|
216
|
+
</body>
|
|
217
|
+
</html>
|