class Poto::FileRepository::Google::Cloud::Storage::FileCollectionMapper
Attributes
page[R]
Public Class Methods
new(files, page)
click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_collection_mapper.rb, line 14 def initialize(files, page) @files = files @page = page end
Public Instance Methods
call()
click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_collection_mapper.rb, line 19 def call FileCollection.new(files, page, next_page) end
Private Instance Methods
files()
click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_collection_mapper.rb, line 25 def files @files.map { |file| FileMapper.new(file).call } end
next_page()
click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_collection_mapper.rb, line 29 def next_page @files.token end