Class: Pageflow::ImageFile
Instance Method Summary
collapse
#usage_id
#publish!, #retry!, #retryable?
Instance Method Details
#attachment ⇒ Object
25
26
27
|
# File 'app/models/pageflow/image_file.rb', line 25
def attachment
processed_attachment.present? ? processed_attachment : unprocessed_attachment
end
|
#attachment=(value) ⇒ Object
29
30
31
|
# File 'app/models/pageflow/image_file.rb', line 29
def attachment=(value)
self.unprocessed_attachment = value
end
|
#thumbnail_url(*args) ⇒ Object
33
34
35
|
# File 'app/models/pageflow/image_file.rb', line 33
def thumbnail_url(*args)
processed_attachment.url(*args)
end
|
#url ⇒ Object
37
38
39
40
41
|
# File 'app/models/pageflow/image_file.rb', line 37
def url
if processed_attachment.present?
attachment.url(:large)
end
end
|