class Poto::FileRepository::AWS::S3::FileMapper
Attributes
object[R]
Public Class Methods
new(object)
click to toggle source
# File lib/poto/file_repository/aws/s3/file_mapper.rb, line 12 def initialize(object) @object = object end
Public Instance Methods
call()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_mapper.rb, line 16 def call File.new(id, name, size) end
Private Instance Methods
id()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_mapper.rb, line 30 def id object.key end
name()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_mapper.rb, line 22 def name object.key end
size()
click to toggle source
# File lib/poto/file_repository/aws/s3/file_mapper.rb, line 26 def size object.size end