class S3AssetsDeployer::AssetFile

Public Class Methods

new(path, realpath) click to toggle source
# File lib/s3_assets_deployer/asset_file.rb, line 5
def initialize(path, realpath)
  @path = path
  @realpath = realpath
end

Public Instance Methods

body() click to toggle source
# File lib/s3_assets_deployer/asset_file.rb, line 14
def body
  File.new(@realpath)
end
content_type() click to toggle source
# File lib/s3_assets_deployer/asset_file.rb, line 18
def content_type
  MIME::Types.type_for(@path).first.to_s
end
key() click to toggle source
# File lib/s3_assets_deployer/asset_file.rb, line 10
def key
  @path
end