quimby 0.4.2 → 0.4.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.
- data/lib/foursquare/category.rb +35 -0
- metadata +8 -5
@@ -0,0 +1,35 @@
|
|
1
|
+
module Foursquare
|
2
|
+
class Category
|
3
|
+
|
4
|
+
# this enabled the previous app to work with this new version where Category is now an object
|
5
|
+
def [](key)
|
6
|
+
@json[key]
|
7
|
+
end
|
8
|
+
|
9
|
+
def initialize(json)
|
10
|
+
@json = json
|
11
|
+
end
|
12
|
+
|
13
|
+
def name
|
14
|
+
@json["name"]
|
15
|
+
end
|
16
|
+
|
17
|
+
def plural_name
|
18
|
+
@json["pluralName"]
|
19
|
+
end
|
20
|
+
|
21
|
+
def icon
|
22
|
+
@json["icon"]
|
23
|
+
end
|
24
|
+
|
25
|
+
# array
|
26
|
+
def parents
|
27
|
+
@json["parents"]
|
28
|
+
end
|
29
|
+
|
30
|
+
def primary?
|
31
|
+
@json["primary"] == true
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quimby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Nakajima
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-14 00:00:00
|
18
|
+
date: 2011-01-14 00:00:00 -05:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: typhoeus
|
@@ -61,6 +62,7 @@ files:
|
|
61
62
|
- lib/foursquare/tip.rb
|
62
63
|
- lib/foursquare/multi.rb
|
63
64
|
- lib/foursquare/checkin.rb
|
65
|
+
- lib/foursquare/category.rb
|
64
66
|
- lib/foursquare/location.rb
|
65
67
|
- lib/foursquare/photo.rb
|
66
68
|
- lib/foursquare/checkin_proxy.rb
|
@@ -69,6 +71,7 @@ files:
|
|
69
71
|
- lib/foursquare/venue.rb
|
70
72
|
- lib/foursquare/venue_proxy.rb
|
71
73
|
- spec/THERE_ARENT_ANY
|
74
|
+
has_rdoc: true
|
72
75
|
homepage: https://github.com/groupme/quimby
|
73
76
|
licenses: []
|
74
77
|
|
@@ -98,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
101
|
requirements: []
|
99
102
|
|
100
103
|
rubyforge_project:
|
101
|
-
rubygems_version: 1.
|
104
|
+
rubygems_version: 1.6.2
|
102
105
|
signing_key:
|
103
106
|
specification_version: 3
|
104
107
|
summary: A Foursquare API wrapper
|