grave 1.8.1 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/grave.rb +16 -24
- metadata +2 -2
data/lib/grave.rb
CHANGED
@@ -20,23 +20,15 @@ module Grave
|
|
20
20
|
@@json['id']
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
23
|
+
def profile
|
24
24
|
@@json['profileUrl']
|
25
25
|
end
|
26
26
|
|
27
|
-
def preferred
|
28
|
-
@@json['preferredUsername']
|
29
|
-
end
|
30
|
-
|
31
|
-
def thumbnail
|
32
|
-
@@json['thumbnailUrl']
|
33
|
-
end
|
34
|
-
|
35
27
|
def display
|
36
28
|
@@json['displayName']
|
37
29
|
end
|
38
30
|
|
39
|
-
def
|
31
|
+
def about
|
40
32
|
@@json['aboutMe']
|
41
33
|
end
|
42
34
|
|
@@ -44,10 +36,6 @@ module Grave
|
|
44
36
|
@@json['currentLocation']
|
45
37
|
end
|
46
38
|
|
47
|
-
def photos
|
48
|
-
@@json["photos"]
|
49
|
-
end
|
50
|
-
|
51
39
|
def background
|
52
40
|
@@json['profileBackground']
|
53
41
|
end
|
@@ -56,24 +44,28 @@ module Grave
|
|
56
44
|
@@json['name']
|
57
45
|
end
|
58
46
|
|
59
|
-
def
|
60
|
-
@@json['
|
47
|
+
def photo(n = 0)
|
48
|
+
@@json['photos'][n]['value']
|
49
|
+
end
|
50
|
+
|
51
|
+
def phone(n = 0)
|
52
|
+
@@json['phoneNumbers'][n]['value']
|
61
53
|
end
|
62
54
|
|
63
|
-
def
|
64
|
-
@@json['emails']
|
55
|
+
def email(n = 0)
|
56
|
+
@@json['emails'][n]['value']
|
65
57
|
end
|
66
58
|
|
67
|
-
def
|
68
|
-
@@json['ims']
|
59
|
+
def im(n)
|
60
|
+
@@json['ims'][n]
|
69
61
|
end
|
70
62
|
|
71
|
-
def
|
72
|
-
@@json['accounts']
|
63
|
+
def account(n)
|
64
|
+
@@json['accounts'][n]
|
73
65
|
end
|
74
66
|
|
75
|
-
def
|
76
|
-
@@json['urls']
|
67
|
+
def url(n)
|
68
|
+
@@json['urls'][n]
|
77
69
|
end
|
78
70
|
end
|
79
71
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|