Class: Uploadcare::Entity::FileList

Inherits:
ApiStruct::Entity
  • Object
show all
Includes:
Decorator::Paginator
Defined in:
lib/uploadcare/entity/file_list.rb

Overview

This serializer returns lists of files

This is a paginated list, so all pagination methods apply

Instance Method Summary collapse

Methods included from Decorator::Paginator

#all, #each, #load, #meta, #next_page, #previous_page

Instance Method Details

#filesArray

alias for result/results, depending on which API this FileList was initialized from

Returns:

  • (Array)

    of [Uploadcare::Entity::File]



25
26
27
28
29
# File 'lib/uploadcare/entity/file_list.rb', line 25

def files
  results
rescue ApiStruct::EntityError
  result
end