Class: Pageflow::PositionedFile::Null

Inherits:
Pageflow::PositionedFile show all
Defined in:
app/models/pageflow/positioned_file.rb

Instance Attribute Summary

Attributes inherited from Pageflow::PositionedFile

#file, #position_x, #position_y

Instance Method Summary collapse

Methods inherited from Pageflow::PositionedFile

#==, null, #to_model, wrap

Constructor Details

#initializeNull

Returns a new instance of Null.



33
34
35
# File 'app/models/pageflow/positioned_file.rb', line 33

def initialize
  super(nil)
end

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'app/models/pageflow/positioned_file.rb', line 41

def blank?
  true
end

#thumbnail_url(*args) ⇒ Object



37
38
39
# File 'app/models/pageflow/positioned_file.rb', line 37

def thumbnail_url(*args)
  ImageFile.new.attachment.url(*args)
end