class Poto::FileRepository::AWS::S3::FileCollectionMapper
Attributes
objects[R]
Public Class Methods
new(objects)
click to toggle source
# File lib/poto/file_repository/aws/s3/file_collection_mapper.rb, line 11 def initialize(objects) @objects = objects end
Public Instance Methods
call()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_collection_mapper.rb, line 15 def call FileCollection.new(files, page, next_page) end
Private Instance Methods
files()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_collection_mapper.rb, line 21 def files objects.contents.map { |object| FileMapper.new(object).call } end
next_page()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_collection_mapper.rb, line 29 def next_page files.last.try(:name) end
page()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_collection_mapper.rb, line 25 def page objects.marker end