class FriendlyShipping::Services::UpsFreight::LabelEmailOptions
Constants
- EMAIL_TYPES
Attributes
body[R]
email[R]
email_type[R]
subject[R]
undeliverable_email[R]
Public Class Methods
new( email:, email_type:, undeliverable_email:, subject: nil, body: nil )
click to toggle source
# File lib/friendly_shipping/services/ups_freight/label_email_options.rb, line 20 def initialize( email:, email_type:, undeliverable_email:, subject: nil, body: nil ) @email = email @email_type = email_type @undeliverable_email = undeliverable_email @subject = subject @body = body end
Public Instance Methods
email_type_code()
click to toggle source
# File lib/friendly_shipping/services/ups_freight/label_email_options.rb, line 34 def email_type_code EMAIL_TYPES.fetch(email_type) end