lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.7.1 vs lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.7.2

- old
+ new

@@ -28,20 +28,21 @@ # Stores an array of HelloSign BaseResource with paging information # # @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 # # @param hash [Hash] Data of the array. # @param key [String] Key of the hash, point to where resource array data is. # @param resource_class [Class] a ResourceClass object inherited from BaseResource. Uses the created array item from hash[key]. # # @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'] @num_results = @list_info['num_results'] @page_size = @list_info['page_size']