class Postal::Attachment
Public Class Methods
new(attributes)
click to toggle source
# File lib/postal/attachment.rb, line 6 def initialize(attributes) @attributes = attributes end
Public Instance Methods
content_type()
click to toggle source
# File lib/postal/attachment.rb, line 14 def content_type @attributes['content_type'] end
data()
click to toggle source
# File lib/postal/attachment.rb, line 26 def data @data ||= Base64.decode64(@attributes['data']) end
filename()
click to toggle source
# File lib/postal/attachment.rb, line 10 def filename @attributes['filename'] end
hash()
click to toggle source
# File lib/postal/attachment.rb, line 22 def hash @attributes['hash'] end
size()
click to toggle source
# File lib/postal/attachment.rb, line 18 def size @attributes['size'] end