class Poto::FileRepository::Google::Cloud::Storage::FileMapper

Attributes

file[R]

Public Class Methods

new(file) click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_mapper.rb, line 13
def initialize(file)
  @file = file
end

Public Instance Methods

call() click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_mapper.rb, line 17
def call
  File.new(id, name, size)
end

Private Instance Methods

id() click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_mapper.rb, line 31
def id
  file.name
end
name() click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_mapper.rb, line 23
def name
  file.name
end
size() click to toggle source
# File lib/poto/file_repository/google/cloud/storage/file_mapper.rb, line 27
def size
  file.size
end