hellosign-ruby-sdk 3.0.17 → 3.0.18
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29643cd2407c931729cfa222edf5bda0adb6a6bb
|
4
|
+
data.tar.gz: cb307966b0355ef27cc475ffeca1b203a6d80d5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514b1b19d22bd8402a7d1724920bc0bb3b61b563da9a18f519057e0dabcc50735f37be28a23174dd03dfb3a6de78dbaa0f09b631f57c1a85d2431891f552b994
|
7
|
+
data.tar.gz: 97599fb900e28a83fef212cd34922d430d5f0a6bdc07b7cafa0793f14463c81b4325d530ac925768c958aef44f3707f96e155a3a2f878b42c13caa2d7b2f0d29
|
@@ -1,8 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# The MIT License (MIT)
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# Copyright (C) 2014 hellosign.com
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
8
8
|
# in the Software without restriction, including without limitation the rights
|
@@ -41,6 +41,7 @@ module HelloSign
|
|
41
41
|
# @return [HelloSign::Resource::BaseResource] a new BaseResource
|
42
42
|
def initialize(hash, key=nil)
|
43
43
|
@raw_data = key ? hash[key] : hash
|
44
|
+
@warnings = hash['warnings'] ? hash['warnings'] : nil
|
44
45
|
@data = @raw_data.inject({}) do |data, (key, value)|
|
45
46
|
data[key.to_s] = if value.is_a? Hash
|
46
47
|
value = BaseResource.new(value)
|
@@ -77,6 +78,14 @@ module HelloSign
|
|
77
78
|
def data
|
78
79
|
@raw_data
|
79
80
|
end
|
81
|
+
|
82
|
+
#
|
83
|
+
# shows any warnings returned with the api response, if present
|
84
|
+
#
|
85
|
+
# @return [Array<Hash>, nil] Array of warning hashes in format {'warning_msg' => val, 'warning_name' => val} or nil
|
86
|
+
def warnings
|
87
|
+
@warnings
|
88
|
+
end
|
80
89
|
end
|
81
90
|
end
|
82
91
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# The MIT License (MIT)
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# Copyright (C) 2014 hellosign.com
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
8
8
|
# in the Software without restriction, including without limitation the rights
|
@@ -31,7 +31,7 @@ module HelloSign
|
|
31
31
|
# @author [hellosign]
|
32
32
|
#
|
33
33
|
class ResourceArray < Array
|
34
|
-
attr_reader :page, :num_pages, :num_results, :page_size
|
34
|
+
attr_reader :page, :num_pages, :num_results, :page_size, :warnings
|
35
35
|
|
36
36
|
#
|
37
37
|
# create a new ResourceArray from a hash
|
@@ -46,6 +46,7 @@ module HelloSign
|
|
46
46
|
@num_pages = hash['list_info']['num_pages']
|
47
47
|
@num_results = hash['list_info']['num_results']
|
48
48
|
@page_size = hash['list_info']['page_size']
|
49
|
+
@warnings = hash['warnings'] ? hash['warnings'] : nil
|
49
50
|
hash[key] && hash[key].each do |resouce|
|
50
51
|
self << resource_class.new(resouce, nil)
|
51
52
|
end
|
data/lib/hello_sign/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hellosign-ruby-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HelloSign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|