logan 0.2.1 → 0.2.2
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 +4 -4
- data/lib/logan/person.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e84850e1701af26d07c895ab32a133ca705d06
|
4
|
+
data.tar.gz: 84fc9ccae4421dec2e1c803c76154a3fa0569222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e592ea81ea487bc2593bd6382ea4b77f031a7b361e14e52ee3800aefa7e26dcafafef2580665bfb0535fa0d491276f976d2a2165124eb481515496ecbf99b9a
|
7
|
+
data.tar.gz: 1e4f87d212299d690a368d65b0d1b6692eeb961a9bf30d68777b484c8faec5d7026e086f9c8e8b0642e210864c178a905d075a9aca6af422a870b9540157d061
|
data/lib/logan/person.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'logan/HashConstructed'
|
2
|
+
require 'logan/response_handler'
|
2
3
|
|
3
4
|
module Logan
|
4
5
|
class Person
|
5
6
|
include HashConstructed
|
7
|
+
include ResponseHandler
|
6
8
|
|
7
9
|
attr_accessor :id
|
8
10
|
attr_accessor :identity_id
|
@@ -17,5 +19,10 @@ module Logan
|
|
17
19
|
def to_hash
|
18
20
|
{ :id => @id, :type => "Person" }
|
19
21
|
end
|
22
|
+
|
23
|
+
def projects
|
24
|
+
response = Logan::Client.get "/people/#{@id}/projects.json"
|
25
|
+
handle_response(response, Proc.new {|h| Logan::Project.new(h) })
|
26
|
+
end
|
20
27
|
end
|
21
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Birarda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|