class Shrine::Plugins::DownloadEndpoint::FileUrl

  1. lib/shrine/plugins/download_endpoint.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. call
  2. file

Attributes

file [R]

Public Class methods

new(file)
[show source]
   # File lib/shrine/plugins/download_endpoint.rb
64 def initialize(file)
65   @file = file
66 end

Public Instance methods

call(host: self.host)
[show source]
   # File lib/shrine/plugins/download_endpoint.rb
68 def call(host: self.host)
69   [host, *prefix, path].join("/")
70 end