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)


17
18
19
# File 'lib/attachs/types/default.rb', line 17

def image?
  false
end

#url(*args) ⇒ Object



21
22
23
24
25
# File 'lib/attachs/types/default.rb', line 21

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