lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.2.15 vs lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.3.0

- old
+ new

@@ -45,12 +45,16 @@ @page = hash['list_info']['page'] @num_pages = hash['list_info']['num_pages'] @num_results = hash['list_info']['num_results'] @page_size = hash['list_info']['page_size'] @warnings = hash['warnings'] ? hash['warnings'] : nil - hash[key] && hash[key].each do |resouce| - self << resource_class.new(resouce, nil) + + self << resource_class.new(hash, nil) + + hash[key] && hash[key].each do |resource| + self << resource_class.new(resource, nil) end + end end end end