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

Commit

Permalink
Merge pull request #94 from HelloFax/Get-Files
Browse files Browse the repository at this point in the history
Get files
  • Loading branch information
jyoung488 committed Aug 16, 2018
2 parents 0500f0d + 9a734ac commit 912c4bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/hello_sign/api/signature_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def signature_request_files(opts)
separator = opts[:file_type].nil? ? '?' : '&'
path = path + "#{separator}get_url=#{opts[:get_url]}"
end
get(path)
get(path)[:body]
end

#
Expand Down
3 changes: 2 additions & 1 deletion lib/hello_sign/resource/resource_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Resource
# @author [hellosign]
#
class ResourceArray < Array
attr_reader :page, :num_pages, :num_results, :page_size, :warnings, :headers, :list_info
attr_reader :page, :num_pages, :num_results, :page_size, :warnings, :headers, :list_info, :data
#
# create a new ResourceArray from a hash
#
Expand All @@ -41,6 +41,7 @@ class ResourceArray < Array
# @return [type] [description]
def initialize(hash, key, resource_class)
@headers = hash[:headers]
@data = hash[:body]
@list_info = hash[:body]['list_info']
@page = @list_info['page']
@num_pages = @list_info['num_pages']
Expand Down
2 changes: 1 addition & 1 deletion lib/hello_sign/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
#

module HelloSign
VERSION = '3.7.1'
VERSION = '3.7.2'
end

0 comments on commit 912c4bf

Please sign in to comment.