plangrade-ruby 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -4
- data/lib/plangrade/resources/company.rb +2 -2
- data/lib/plangrade/resources/participant.rb +3 -3
- data/lib/plangrade/ruby/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2f116073ab8b304230435c3559cc0eb8689706b
|
4
|
+
data.tar.gz: 6beba3de360cd673e2d9f1da7420cdf310feb494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b763d8ba6c5f4e05ea3a6868a59fadd3979d399272e12972dc109499252f0ab3461cad706ac01c2cfefd61868b58e829b54617ac138b61748ee8b3a8db4ec4
|
7
|
+
data.tar.gz: e8a1d34468590bd86eb36c527ffa30ff10ee2df6037d70b2f4eea682ef2cdfb651b42fe500d6bbedb27dc480e381085751455c21d593a3c6b26424e9bc0938aa
|
checksums.yaml.gz.sig
CHANGED
@@ -1,4 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�7�����n
|
4
|
-
ѹR�f��2
|
1
|
+
K)���<�D>�`˶�Ll�\�V#��vE�*&�e�6s����S�h�_
|
2
|
+
�����*�S��D��^.��a܆��*���LH��GLW5�)/��^*��Ǻ��#��E|!Na��?�������B��� �B������<qF q2i�!�Tr�A�?q�T(�UF�[v(���-b��8�d�]�_�/�j�
|
@@ -12,13 +12,13 @@ module Plangrade
|
|
12
12
|
attr_accessor_deffered :name, :ein, :grade
|
13
13
|
|
14
14
|
def self.get(id)
|
15
|
-
api_handler.get_company(id)
|
15
|
+
result = api_handler.get_company(id)
|
16
16
|
return nil unless result.success?
|
17
17
|
new(result.body[:company])
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.all(opts={})
|
21
|
-
api_handler.all_companies(opts)
|
21
|
+
result = api_handler.all_companies(opts)
|
22
22
|
return nil unless result.success?
|
23
23
|
new(result.body[:companies])
|
24
24
|
end
|
@@ -13,7 +13,7 @@ module Plangrade
|
|
13
13
|
attr_accessor_deffered :company_id, :employee_id, :first_name, :last_name, :street1, :street2, :city, :state, :zip, :dob, :email, :phone
|
14
14
|
|
15
15
|
def self.get(id)
|
16
|
-
api_handler.get_participant(id)
|
16
|
+
result = api_handler.get_participant(id)
|
17
17
|
return nil unless result.success?
|
18
18
|
new(result.body[:participant])
|
19
19
|
end
|
@@ -21,13 +21,13 @@ module Plangrade
|
|
21
21
|
def self.all(company_id, opts={})
|
22
22
|
opts ||= {}
|
23
23
|
opts[:company_id] = company_id
|
24
|
-
api_handler.all_participants(opts)
|
24
|
+
result = api_handler.all_participants(opts)
|
25
25
|
return nil unless result.success?
|
26
26
|
new(result.body[:participants])
|
27
27
|
end
|
28
28
|
|
29
29
|
def archive!
|
30
|
-
api_handler.archive_participant(@id)
|
30
|
+
result = api_handler.archive_participant(@id)
|
31
31
|
return nil unless result.success?
|
32
32
|
new(result.body)
|
33
33
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|