lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.0.3 vs lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.0.4

- old
+ new

@@ -7,11 +7,10 @@ # @author [hellosign] # class ResourceArray < Array attr_reader :page, :num_pages, :num_results, :page_size - # # create a new ResourceArray from a hash # # @param hash [Hash] data of the array # @param key [String] key of the hash, point to where resource array data is @@ -22,11 +21,11 @@ @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'] hash[key] && hash[key].each do |resouce| - self << resource_class.new(resouce, nil) - end + self << resource_class.new(resouce, nil) + end end end end end