Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit 912c4bf

Browse files
authored
Merge pull request #94 from HelloFax/Get-Files
Get files
2 parents 0500f0d + 9a734ac commit 912c4bf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/hello_sign/api/signature_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def signature_request_files(opts)
313313
separator = opts[:file_type].nil? ? '?' : '&'
314314
path = path + "#{separator}get_url=#{opts[:get_url]}"
315315
end
316-
get(path)
316+
get(path)[:body]
317317
end
318318

319319
#

lib/hello_sign/resource/resource_array.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module Resource
3030
# @author [hellosign]
3131
#
3232
class ResourceArray < Array
33-
attr_reader :page, :num_pages, :num_results, :page_size, :warnings, :headers, :list_info
33+
attr_reader :page, :num_pages, :num_results, :page_size, :warnings, :headers, :list_info, :data
3434
#
3535
# create a new ResourceArray from a hash
3636
#
@@ -41,6 +41,7 @@ class ResourceArray < Array
4141
# @return [type] [description]
4242
def initialize(hash, key, resource_class)
4343
@headers = hash[:headers]
44+
@data = hash[:body]
4445
@list_info = hash[:body]['list_info']
4546
@page = @list_info['page']
4647
@num_pages = @list_info['num_pages']

lib/hello_sign/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
#
2424

2525
module HelloSign
26-
VERSION = '3.7.1'
26+
VERSION = '3.7.2'
2727
end

0 commit comments

Comments
 (0)