lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.7.0 vs lib/hello_sign/resource/resource_array.rb in hellosign-ruby-sdk-3.7.1
- old
+ new
@@ -22,24 +22,22 @@
# SOFTWARE.
#
module HelloSign
module Resource
-
#
# 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
-
#
# 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 Resource Class object inherited from BaseResource. Use the created array item from hash[key]
+ # @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]
@list_info = hash[:body]['list_info']