Class: Attachs::Types::Default

Inherits:
Base
  • Object
show all
Defined in:
lib/attachs/types/default.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Attachs::Types::Base

Instance Method Details

#image?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/attachs/types/default.rb', line 9

def image?
  false
end

#url(*args) ⇒ Object



13
14
15
16
17
# File 'lib/attachs/types/default.rb', line 13

def url(*args)
  if attachment.default?
    storage.url *args
  end
end