Class: Paperclip::Attachment
- Inherits:
-
Object
- Object
- Paperclip::Attachment
- Defined in:
- lib/paperclip/document/attachment_extension.rb
Instance Method Summary collapse
-
#content_text ⇒ Object
Returns the content_text of the file as originally extracted, and lives in the <attachment>_content_text attribute of the model.
-
#pages_count ⇒ Object
Returns the pages_count of the file as originally computed, and lives in the <attachment>_pages_count attribute of the model.
Instance Method Details
#content_text ⇒ Object
Returns the content_text of the file as originally extracted, and lives in the <attachment>_content_text attribute of the model.
4 5 6 |
# File 'lib/paperclip/document/attachment_extension.rb', line 4 def content_text instance_read(:content_text) end |
#pages_count ⇒ Object
Returns the pages_count of the file as originally computed, and lives in the <attachment>_pages_count attribute of the model.
9 10 11 |
# File 'lib/paperclip/document/attachment_extension.rb', line 9 def pages_count instance_read(:pages_count) end |