myspace-ruby 0.7.0 → 0.7.1
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.
- data/README +3 -3
- data/doc/classes/MySpace/Connection.html +328 -46
- data/doc/classes/MySpace/Object.html +264 -38
- data/doc/classes/MySpace/User.html +55 -0
- data/doc/classes/MySpace.html +73 -19
- data/doc/classes/MySpaceAPITest.html +172 -220
- data/doc/created.rid +1 -1
- data/doc/files/lib/myspace_rb.html +19 -14
- data/doc/files/tests/test_rb.html +1 -1
- data/doc/fr_class_index.html +3 -0
- data/doc/fr_file_index.html +9 -0
- data/doc/fr_method_index.html +58 -28
- data/lib/myspace/classes/user.rb +1 -0
- data/lib/myspace/connection.rb +2 -2
- data/lib/myspace/loader.rb +1 -1
- data/lib/myspace/object.rb +0 -1
- data/lib/myspace.rb +1 -1
- data/tests/test.rb +3 -7
- metadata +2 -3
- data/lib/myspace/classes/group.rb +0 -55
data/doc/created.rid
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Sat, 26 Apr 2008 01:45:46 -0700
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</tr>
|
|
57
57
|
<tr class="top-aligned-row">
|
|
58
58
|
<td><strong>Last Update:</strong></td>
|
|
59
|
-
<td>
|
|
59
|
+
<td>Sat Apr 26 01:28:23 -0700 2008</td>
|
|
60
60
|
</tr>
|
|
61
61
|
</table>
|
|
62
62
|
</div>
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
<h3 class="section-bar">Methods</h3>
|
|
77
77
|
|
|
78
78
|
<div class="name-list">
|
|
79
|
-
<a href="#
|
|
80
|
-
<a href="#
|
|
79
|
+
<a href="#M000003">connect</a>
|
|
80
|
+
<a href="#M000004">connection</a>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
83
83
|
|
|
@@ -117,11 +117,11 @@ Load YAML configuration from a file and use those parameters
|
|
|
117
117
|
<div id="methods">
|
|
118
118
|
<h3 class="section-bar">Public Class methods</h3>
|
|
119
119
|
|
|
120
|
-
<div id="method-
|
|
121
|
-
<a name="
|
|
120
|
+
<div id="method-M000003" class="method-detail">
|
|
121
|
+
<a name="M000003"></a>
|
|
122
122
|
|
|
123
123
|
<div class="method-heading">
|
|
124
|
-
<a href="#
|
|
124
|
+
<a href="#M000003" class="method-signature">
|
|
125
125
|
<span class="method-name">connect</span><span class="method-args">(apiKey=CONF["apiKey"],secretKey=CONF["secretKey"]) {|@connection if block_given?| ...}</span>
|
|
126
126
|
</a>
|
|
127
127
|
</div>
|
|
@@ -132,11 +132,16 @@ Connect to <a href="../../classes/MySpace.html">MySpace</a>‘s API
|
|
|
132
132
|
servers
|
|
133
133
|
</p>
|
|
134
134
|
<p><a class="source-toggle" href="#"
|
|
135
|
-
onclick="toggleCode('
|
|
136
|
-
<div class="method-source-code" id="
|
|
135
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
|
136
|
+
<div class="method-source-code" id="M000003-source">
|
|
137
137
|
<pre>
|
|
138
138
|
<span class="ruby-comment cmt"># File lib/myspace.rb, line 27</span>
|
|
139
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connect</span>(<span class="ruby-identifier">apiKey</span>=<span class="ruby-constant">CONF</span>[<span class="ruby-value str">"apiKey"</span>],<span class="ruby-identifier">secretKey</span>=<span class="ruby-constant">CONF</span>[<span class="ruby-value str">"secretKey"</span>])
|
|
140
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">InvalidCredentials</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"No apiKey or secretKey, aborting connect.
|
|
141
|
+
You need to pass them to MySpace.connect or put them in myspace.conf"</span>) \
|
|
142
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apiKey</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">secretKey</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span>
|
|
143
|
+
<span class="ruby-identifier">apiKey</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/x{7}/</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">secretKey</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/x{7}/</span>
|
|
144
|
+
|
|
140
145
|
<span class="ruby-ivar">@connection</span> = <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:apiKey</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">apiKey</span>, <span class="ruby-identifier">:secretKey</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">secretKey</span>)
|
|
141
146
|
|
|
142
147
|
<span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@connection</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
|
@@ -147,21 +152,21 @@ servers
|
|
|
147
152
|
</div>
|
|
148
153
|
</div>
|
|
149
154
|
|
|
150
|
-
<div id="method-
|
|
151
|
-
<a name="
|
|
155
|
+
<div id="method-M000004" class="method-detail">
|
|
156
|
+
<a name="M000004"></a>
|
|
152
157
|
|
|
153
158
|
<div class="method-heading">
|
|
154
|
-
<a href="#
|
|
159
|
+
<a href="#M000004" class="method-signature">
|
|
155
160
|
<span class="method-name">connection</span><span class="method-args">()</span>
|
|
156
161
|
</a>
|
|
157
162
|
</div>
|
|
158
163
|
|
|
159
164
|
<div class="method-description">
|
|
160
165
|
<p><a class="source-toggle" href="#"
|
|
161
|
-
onclick="toggleCode('
|
|
162
|
-
<div class="method-source-code" id="
|
|
166
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
|
167
|
+
<div class="method-source-code" id="M000004-source">
|
|
163
168
|
<pre>
|
|
164
|
-
<span class="ruby-comment cmt"># File lib/myspace.rb, line
|
|
169
|
+
<span class="ruby-comment cmt"># File lib/myspace.rb, line 39</span>
|
|
165
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connection</span>
|
|
166
171
|
<span class="ruby-ivar">@connection</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connect</span>
|
|
167
172
|
<span class="ruby-keyword kw">end</span>
|
data/doc/fr_class_index.html
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
<h1 class="section-bar">Classes</h1>
|
|
22
22
|
<div id="index-entries">
|
|
23
23
|
<a href="classes/MySpace.html">MySpace</a><br />
|
|
24
|
+
<a href="classes/MySpace/Connection.html">MySpace::Connection</a><br />
|
|
25
|
+
<a href="classes/MySpace/Object.html">MySpace::Object</a><br />
|
|
26
|
+
<a href="classes/MySpace/User.html">MySpace::User</a><br />
|
|
24
27
|
<a href="classes/MySpaceAPITest.html">MySpaceAPITest</a><br />
|
|
25
28
|
</div>
|
|
26
29
|
</div>
|
data/doc/fr_file_index.html
CHANGED
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
<h1 class="section-bar">Files</h1>
|
|
22
22
|
<div id="index-entries">
|
|
23
23
|
<a href="files/lib/myspace_rb.html">lib/myspace.rb</a><br />
|
|
24
|
+
<a href="files/lib/myspace/classes/user_rb.html">lib/myspace/classes/user.rb</a><br />
|
|
25
|
+
<a href="files/lib/myspace/connection_rb.html">lib/myspace/connection.rb</a><br />
|
|
26
|
+
<a href="files/lib/myspace/loader_rb.html">lib/myspace/loader.rb</a><br />
|
|
27
|
+
<a href="files/lib/myspace/object_rb.html">lib/myspace/object.rb</a><br />
|
|
28
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace_rb.html">pkg/myspace-ruby-0.7.0/lib/myspace.rb</a><br />
|
|
29
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace/classes/user_rb.html">pkg/myspace-ruby-0.7.0/lib/myspace/classes/user.rb</a><br />
|
|
30
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace/connection_rb.html">pkg/myspace-ruby-0.7.0/lib/myspace/connection.rb</a><br />
|
|
31
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace/loader_rb.html">pkg/myspace-ruby-0.7.0/lib/myspace/loader.rb</a><br />
|
|
32
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace/object_rb.html">pkg/myspace-ruby-0.7.0/lib/myspace/object.rb</a><br />
|
|
24
33
|
<a href="files/pkg/myspace-ruby-0_7_0/tests/test_rb.html">pkg/myspace-ruby-0.7.0/tests/test.rb</a><br />
|
|
25
34
|
<a href="files/tests/test_rb.html">tests/test.rb</a><br />
|
|
26
35
|
</div>
|
data/doc/fr_method_index.html
CHANGED
|
@@ -20,34 +20,64 @@
|
|
|
20
20
|
<div id="index">
|
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
|
22
22
|
<div id="index-entries">
|
|
23
|
-
<a href="
|
|
24
|
-
<a href="
|
|
25
|
-
<a href="
|
|
26
|
-
<a href="
|
|
27
|
-
<a href="classes/
|
|
28
|
-
<a href="classes/
|
|
29
|
-
<a href="
|
|
30
|
-
<a href="
|
|
31
|
-
<a href="classes/
|
|
32
|
-
<a href="classes/
|
|
33
|
-
<a href="classes/
|
|
34
|
-
<a href="classes/
|
|
35
|
-
<a href="classes/
|
|
36
|
-
<a href="classes/
|
|
37
|
-
<a href="classes/
|
|
38
|
-
<a href="classes/
|
|
39
|
-
<a href="classes/
|
|
40
|
-
<a href="classes/
|
|
41
|
-
<a href="classes/
|
|
42
|
-
<a href="classes/
|
|
43
|
-
<a href="classes/
|
|
44
|
-
<a href="classes/
|
|
45
|
-
<a href="classes/
|
|
46
|
-
<a href="classes/
|
|
47
|
-
<a href="classes/
|
|
48
|
-
<a href="classes/
|
|
49
|
-
<a href="classes/
|
|
50
|
-
<a href="classes/
|
|
23
|
+
<a href="classes/MySpace/Object.html#M000050">build_request (MySpace::Object)</a><br />
|
|
24
|
+
<a href="classes/MySpace/Object.html#M000056">build_request (MySpace::Object)</a><br />
|
|
25
|
+
<a href="files/lib/myspace_rb.html#M000003">connect (lib/myspace.rb)</a><br />
|
|
26
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace_rb.html#M000007">connect (pkg/myspace-ruby-0.7.0/lib/myspace.rb)</a><br />
|
|
27
|
+
<a href="classes/MySpace/Connection.html#M000036">connect (MySpace::Connection)</a><br />
|
|
28
|
+
<a href="classes/MySpace/Connection.html#M000043">connect (MySpace::Connection)</a><br />
|
|
29
|
+
<a href="files/lib/myspace_rb.html#M000004">connection (lib/myspace.rb)</a><br />
|
|
30
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace_rb.html#M000008">connection (pkg/myspace-ruby-0.7.0/lib/myspace.rb)</a><br />
|
|
31
|
+
<a href="classes/MySpace/Connection.html#M000042">consumer (MySpace::Connection)</a><br />
|
|
32
|
+
<a href="classes/MySpace/Connection.html#M000035">consumer (MySpace::Connection)</a><br />
|
|
33
|
+
<a href="classes/MySpace/Object.html#M000058">get (MySpace::Object)</a><br />
|
|
34
|
+
<a href="classes/MySpace/Connection.html#M000046">get (MySpace::Connection)</a><br />
|
|
35
|
+
<a href="classes/MySpace/Object.html#M000052">get (MySpace::Object)</a><br />
|
|
36
|
+
<a href="classes/MySpace/Connection.html#M000039">get (MySpace::Connection)</a><br />
|
|
37
|
+
<a href="classes/MySpace/Connection.html#M000038">get_body (MySpace::Connection)</a><br />
|
|
38
|
+
<a href="classes/MySpace/Connection.html#M000045">get_body (MySpace::Connection)</a><br />
|
|
39
|
+
<a href="classes/MySpace/Object.html#M000051">get_raw (MySpace::Object)</a><br />
|
|
40
|
+
<a href="classes/MySpace/Object.html#M000057">get_raw (MySpace::Object)</a><br />
|
|
41
|
+
<a href="classes/MySpace/Object.html#M000048">json_to_obj (MySpace::Object)</a><br />
|
|
42
|
+
<a href="classes/MySpace/Object.html#M000054">json_to_obj (MySpace::Object)</a><br />
|
|
43
|
+
<a href="classes/MySpace/Object.html#M000049">json_to_obj_collection (MySpace::Object)</a><br />
|
|
44
|
+
<a href="classes/MySpace/Object.html#M000055">json_to_obj_collection (MySpace::Object)</a><br />
|
|
45
|
+
<a href="classes/MySpace/Object.html#M000047">new (MySpace::Object)</a><br />
|
|
46
|
+
<a href="classes/MySpace/Connection.html#M000033">new (MySpace::Connection)</a><br />
|
|
47
|
+
<a href="classes/MySpace/Connection.html#M000040">new (MySpace::Connection)</a><br />
|
|
48
|
+
<a href="classes/MySpace/Object.html#M000053">new (MySpace::Object)</a><br />
|
|
49
|
+
<a href="classes/MySpace/Connection.html#M000044">post (MySpace::Connection)</a><br />
|
|
50
|
+
<a href="classes/MySpace/Connection.html#M000037">post (MySpace::Connection)</a><br />
|
|
51
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace/loader_rb.html#M000006">remote_install (pkg/myspace-ruby-0.7.0/lib/myspace/loader.rb)</a><br />
|
|
52
|
+
<a href="files/lib/myspace/loader_rb.html#M000002">remote_install (lib/myspace/loader.rb)</a><br />
|
|
53
|
+
<a href="files/pkg/myspace-ruby-0_7_0/lib/myspace/loader_rb.html#M000005">remote_install_failed (pkg/myspace-ruby-0.7.0/lib/myspace/loader.rb)</a><br />
|
|
54
|
+
<a href="files/lib/myspace/loader_rb.html#M000001">remote_install_failed (lib/myspace/loader.rb)</a><br />
|
|
55
|
+
<a href="classes/MySpaceAPITest.html#M000021">setup (MySpaceAPITest)</a><br />
|
|
56
|
+
<a href="classes/MySpaceAPITest.html#M000009">setup (MySpaceAPITest)</a><br />
|
|
57
|
+
<a href="classes/MySpaceAPITest.html#M000022">test_album (MySpaceAPITest)</a><br />
|
|
58
|
+
<a href="classes/MySpaceAPITest.html#M000010">test_album (MySpaceAPITest)</a><br />
|
|
59
|
+
<a href="classes/MySpaceAPITest.html#M000011">test_detail (MySpaceAPITest)</a><br />
|
|
60
|
+
<a href="classes/MySpaceAPITest.html#M000023">test_detail (MySpaceAPITest)</a><br />
|
|
61
|
+
<a href="classes/MySpaceAPITest.html#M000024">test_friends (MySpaceAPITest)</a><br />
|
|
62
|
+
<a href="classes/MySpaceAPITest.html#M000012">test_friends (MySpaceAPITest)</a><br />
|
|
63
|
+
<a href="classes/MySpaceAPITest.html#M000025">test_friendship (MySpaceAPITest)</a><br />
|
|
64
|
+
<a href="classes/MySpaceAPITest.html#M000013">test_friendship (MySpaceAPITest)</a><br />
|
|
65
|
+
<a href="classes/MySpaceAPITest.html#M000014">test_interest (MySpaceAPITest)</a><br />
|
|
66
|
+
<a href="classes/MySpaceAPITest.html#M000026">test_interest (MySpaceAPITest)</a><br />
|
|
67
|
+
<a href="classes/MySpaceAPITest.html#M000027">test_mood (MySpaceAPITest)</a><br />
|
|
68
|
+
<a href="classes/MySpaceAPITest.html#M000015">test_mood (MySpaceAPITest)</a><br />
|
|
69
|
+
<a href="classes/MySpaceAPITest.html#M000028">test_photo (MySpaceAPITest)</a><br />
|
|
70
|
+
<a href="classes/MySpaceAPITest.html#M000016">test_photo (MySpaceAPITest)</a><br />
|
|
71
|
+
<a href="classes/MySpaceAPITest.html#M000017">test_profile (MySpaceAPITest)</a><br />
|
|
72
|
+
<a href="classes/MySpaceAPITest.html#M000029">test_profile (MySpaceAPITest)</a><br />
|
|
73
|
+
<a href="classes/MySpaceAPITest.html#M000018">test_status (MySpaceAPITest)</a><br />
|
|
74
|
+
<a href="classes/MySpaceAPITest.html#M000030">test_status (MySpaceAPITest)</a><br />
|
|
75
|
+
<a href="classes/MySpaceAPITest.html#M000031">test_user (MySpaceAPITest)</a><br />
|
|
76
|
+
<a href="classes/MySpaceAPITest.html#M000019">test_user (MySpaceAPITest)</a><br />
|
|
77
|
+
<a href="classes/MySpaceAPITest.html#M000020">test_video (MySpaceAPITest)</a><br />
|
|
78
|
+
<a href="classes/MySpaceAPITest.html#M000032">test_video (MySpaceAPITest)</a><br />
|
|
79
|
+
<a href="classes/MySpace/Connection.html#M000034">timestamp (MySpace::Connection)</a><br />
|
|
80
|
+
<a href="classes/MySpace/Connection.html#M000041">timestamp (MySpace::Connection)</a><br />
|
|
51
81
|
</div>
|
|
52
82
|
</div>
|
|
53
83
|
</body>
|
data/lib/myspace/classes/user.rb
CHANGED
data/lib/myspace/connection.rb
CHANGED
|
@@ -22,7 +22,7 @@ class Connection
|
|
|
22
22
|
# Constructor for the MySpace::Connection class
|
|
23
23
|
def initialize(attributes={})
|
|
24
24
|
@apiKey = attributes[:apiKey] ||= CONF["apiKey"]
|
|
25
|
-
@secretKey = attributes[:
|
|
25
|
+
@secretKey = attributes[:secretKey] ||= CONF["secretKey"]
|
|
26
26
|
@host = attributes[:host] ||= API_HOST
|
|
27
27
|
@format = attributes[:format] ||= "json"
|
|
28
28
|
|
|
@@ -42,7 +42,7 @@ class Connection
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def consumer
|
|
45
|
-
OAuth::Consumer.new(
|
|
45
|
+
OAuth::Consumer.new(@apiKey,@secretKey,@oauthOptions)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# Connects to the MySapce API servers, returning a Net::HTTP class
|
data/lib/myspace/loader.rb
CHANGED
data/lib/myspace/object.rb
CHANGED
|
@@ -102,7 +102,6 @@ class Object
|
|
|
102
102
|
if @dataType == "Hash"
|
|
103
103
|
self.json_to_obj(body)
|
|
104
104
|
elsif @dataType == "Array"
|
|
105
|
-
body.sub!(/\{"Groups"\:/,'{"groups":') # you did not see this
|
|
106
105
|
self.json_to_obj_collection(body)
|
|
107
106
|
else
|
|
108
107
|
raise InvalidRequestParams.new("#{@dataType} is not a valid data type.")
|
data/lib/myspace.rb
CHANGED
data/tests/test.rb
CHANGED
|
@@ -8,7 +8,7 @@ class MySpaceAPITest < Test::Unit::TestCase
|
|
|
8
8
|
@@friendIds = "0;1"
|
|
9
9
|
@@albumId = 0
|
|
10
10
|
|
|
11
|
-
@@classes = %w[ album detail friends friendship
|
|
11
|
+
@@classes = %w[ album detail friends friendship
|
|
12
12
|
interest mood photo profile status user video ]
|
|
13
13
|
|
|
14
14
|
def setup
|
|
@@ -36,7 +36,6 @@ interest mood photo profile status user video ]
|
|
|
36
36
|
d = MySpace::Detail.get(@@userId)
|
|
37
37
|
assert_kind_of MySpace::Detail, d
|
|
38
38
|
assert_kind_of MySpace::User,d.user
|
|
39
|
-
assert_kind_of String,d.status
|
|
40
39
|
assert_kind_of String,d.ethnicity
|
|
41
40
|
assert_kind_of String,d.drink
|
|
42
41
|
assert_kind_of String,d.zodiacsign
|
|
@@ -69,10 +68,6 @@ interest mood photo profile status user video ]
|
|
|
69
68
|
assert_kind_of Fixnum,f.friendship.first.friendId
|
|
70
69
|
end
|
|
71
70
|
|
|
72
|
-
def test_group
|
|
73
|
-
assert_kind_of MySpace::Groups, MySpace::Groups.get(@@userId)
|
|
74
|
-
end
|
|
75
|
-
|
|
76
71
|
def test_interest
|
|
77
72
|
i = MySpace::Interest.get(@@userId)
|
|
78
73
|
assert_kind_of MySpace::Interest, i
|
|
@@ -135,7 +130,8 @@ interest mood photo profile status user video ]
|
|
|
135
130
|
assert_kind_of Fixnum,u.userId
|
|
136
131
|
assert_kind_of String,u.name
|
|
137
132
|
assert(u.onlineNow.kind_of?(TrueClass) ||
|
|
138
|
-
u.onlineNow.kind_of?(FalseClass)
|
|
133
|
+
u.onlineNow.kind_of?(FalseClass) ||
|
|
134
|
+
u.onlineNow.kind_of?(NilClass))
|
|
139
135
|
|
|
140
136
|
end
|
|
141
137
|
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: myspace-ruby
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.7.
|
|
7
|
-
date: 2008-
|
|
6
|
+
version: 0.7.1
|
|
7
|
+
date: 2008-04-26 00:00:00 -07:00
|
|
8
8
|
summary: A library to interface with the MySpace REST API.
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
@@ -84,7 +84,6 @@ files:
|
|
|
84
84
|
- lib/myspace/classes/profile.rb
|
|
85
85
|
- lib/myspace/classes/mood.rb
|
|
86
86
|
- lib/myspace/classes/interest.rb
|
|
87
|
-
- lib/myspace/classes/group.rb
|
|
88
87
|
- lib/myspace/classes/detail.rb
|
|
89
88
|
- lib/myspace/classes/friendship.rb
|
|
90
89
|
- lib/myspace/classes/user.rb
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
class MySpace::Groups < MySpace::Object
|
|
2
|
-
@pathFormat = "/users/%s/groups".freeze
|
|
3
|
-
@numParams = 1.freeze
|
|
4
|
-
@dataType = "Array".freeze
|
|
5
|
-
@childType = "Group".freeze
|
|
6
|
-
@childBase = "groups".freeze
|
|
7
|
-
|
|
8
|
-
attr_accessor :user
|
|
9
|
-
attr_accessor :prev
|
|
10
|
-
attr_accessor :groups
|
|
11
|
-
attr_accessor :next
|
|
12
|
-
attr_accessor :count
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
class MySpace::Group < MySpace::Object
|
|
16
|
-
attr_accessor :user
|
|
17
|
-
attr_accessor :prev
|
|
18
|
-
attr_accessor :groups
|
|
19
|
-
attr_accessor :next
|
|
20
|
-
attr_accessor :count
|
|
21
|
-
|
|
22
|
-
attr_accessor :approveMembers
|
|
23
|
-
attr_accessor :categoryId
|
|
24
|
-
attr_accessor :categoryName
|
|
25
|
-
attr_accessor :city
|
|
26
|
-
attr_accessor :country
|
|
27
|
-
attr_accessor :createDate
|
|
28
|
-
attr_accessor :description
|
|
29
|
-
attr_accessor :descriptionShort
|
|
30
|
-
attr_accessor :groupId
|
|
31
|
-
attr_accessor :groupName
|
|
32
|
-
attr_accessor :groupUri
|
|
33
|
-
attr_accessor :groupUrl
|
|
34
|
-
attr_accessor :imageId
|
|
35
|
-
attr_accessor :imageType
|
|
36
|
-
attr_accessor :isAdult
|
|
37
|
-
attr_accessor :isPrivate
|
|
38
|
-
attr_accessor :isPublic
|
|
39
|
-
attr_accessor :memberBulletins
|
|
40
|
-
attr_accessor :memberCount
|
|
41
|
-
attr_accessor :memberImages
|
|
42
|
-
attr_accessor :membersCanInvite
|
|
43
|
-
attr_accessor :moderatorUserId
|
|
44
|
-
attr_accessor :nonMemberBoardPosting
|
|
45
|
-
attr_accessor :postalCode
|
|
46
|
-
attr_accessor :region
|
|
47
|
-
attr_accessor :user
|
|
48
|
-
attr_accessor :image
|
|
49
|
-
attr_accessor :name
|
|
50
|
-
attr_accessor :onlineNow
|
|
51
|
-
attr_accessor :uri
|
|
52
|
-
attr_accessor :userId
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
fail "This is a library, not a command line app\n" if $0 == __FILE__
|