class method
self.new
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.new(params)
Create a new part from the given params hash. The valid params keys correspond to the accessors.
Parameters
-
paramsreq
Source
# File actionmailer/lib/action_mailer/part.rb, line 43
def initialize(params)
@content_type = params[:content_type]
@content_disposition = params[:disposition] || "inline"
@charset = params[:charset]
@body = params[:body]
@filename = params[:filename]
@transfer_encoding = params[:transfer_encoding] || "quoted-printable"
@headers = params[:headers] || {}
@parts = []
end
Defined in actionmailer/lib/action_mailer/part.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Part