class EasybillRestClient::Pdf
Attributes
content[R]
filename[W]
Public Class Methods
new(filename:, content:)
click to toggle source
# File lib/easybill_rest_client/pdf.rb, line 8 def initialize(filename:, content:) @filename = filename @content = content end
Public Instance Methods
empty?()
click to toggle source
# File lib/easybill_rest_client/pdf.rb, line 13 def empty? content.empty? end
filename()
click to toggle source
# File lib/easybill_rest_client/pdf.rb, line 17 def filename @filename[/\.pdf\Z/i] ? @filename : "#{@filename}.pdf" end