logan 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logan/person.rb +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acc0f11e9db35c01386da976625fa64fcd781338
4
- data.tar.gz: 47651ff240e1f0f952ccfd93cfc21a9eab27c567
3
+ metadata.gz: 06e84850e1701af26d07c895ab32a133ca705d06
4
+ data.tar.gz: 84fc9ccae4421dec2e1c803c76154a3fa0569222
5
5
  SHA512:
6
- metadata.gz: a5039fb9005dd62bba8eca13dfe424e317290fc577afb281124f2f1f249b2cd5f27b97d766a04dff262e2eba9a4a0e629287e4016228bdce4b70699816761a7e
7
- data.tar.gz: baee0f266127a3d258aaeea7b26e8b7d4c972ee0b20cf7dd3d71704de38da3882d3cbda2cdbf4ef213959149e3aefa772b7bb6068938fbfdae345e89d1ab344c
6
+ metadata.gz: 7e592ea81ea487bc2593bd6382ea4b77f031a7b361e14e52ee3800aefa7e26dcafafef2580665bfb0535fa0d491276f976d2a2165124eb481515496ecbf99b9a
7
+ data.tar.gz: 1e4f87d212299d690a368d65b0d1b6692eeb961a9bf30d68777b484c8faec5d7026e086f9c8e8b0642e210864c178a905d075a9aca6af422a870b9540157d061
@@ -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.1
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-05-20 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty