Class: InterFAX::Image
- Defined in:
- lib/interfax/image.rb
Instance Method Summary collapse
Methods inherited from Object
Instance Method Details
#extension ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/interfax/image.rb', line 10 def extension if mimeType == 'application/pdf' 'pdf' else 'tiff' end end |
#inspect ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/interfax/image.rb', line 2 def inspect _data = data self.data = "#{data[0..20]}..." result = super self.data = _data result end |