Class: Postal::Lmapi::SimpleMailingStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/postal/lmapi/lmapi.rb

Overview

http://tempuri.org/ns1.xsdSimpleMailingStruct

subject - SOAP::SOAPString
isHtmlSectionEncoded - SOAP::SOAPBoolean
htmlSectionEncoding - SOAP::SOAPInt
htmlMessage - SOAP::SOAPString
to - SOAP::SOAPString
charSetID - SOAP::SOAPInt
isTextSectionEncoded - SOAP::SOAPBoolean
textSectionEncoding - SOAP::SOAPInt
title - SOAP::SOAPString
textMessage - SOAP::SOAPString
attachments - SOAP::SOAPString
from - SOAP::SOAPString
additionalHeaders - SOAP::SOAPString

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subject = nil, isHtmlSectionEncoded = nil, htmlSectionEncoding = nil, htmlMessage = nil, to = nil, charSetID = nil, isTextSectionEncoded = nil, textSectionEncoding = nil, title = nil, textMessage = nil, attachments = nil, from = nil, additionalHeaders = nil) ⇒ SimpleMailingStruct

Returns a new instance of SimpleMailingStruct.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/postal/lmapi/lmapi.rb', line 36

def initialize(subject = nil, isHtmlSectionEncoded = nil, htmlSectionEncoding = nil, htmlMessage = nil, to = nil, charSetID = nil, isTextSectionEncoded = nil, textSectionEncoding = nil, title = nil, textMessage = nil, attachments = nil, from = nil, additionalHeaders = nil)
  @subject = subject
  @isHtmlSectionEncoded = isHtmlSectionEncoded
  @htmlSectionEncoding = htmlSectionEncoding
  @htmlMessage = htmlMessage
  @to = to
  @charSetID = charSetID
  @isTextSectionEncoded = isTextSectionEncoded
  @textSectionEncoding = textSectionEncoding
  @title = title
  @textMessage = textMessage
  @attachments = attachments
  @from = from
  @additionalHeaders = additionalHeaders
end

Instance Attribute Details

#additionalHeadersObject

Returns the value of attribute additionalHeaders.



34
35
36
# File 'lib/postal/lmapi/lmapi.rb', line 34

def additionalHeaders
  @additionalHeaders
end

#attachmentsObject

Returns the value of attribute attachments.



32
33
34
# File 'lib/postal/lmapi/lmapi.rb', line 32

def attachments
  @attachments
end

#charSetIDObject

Returns the value of attribute charSetID.



27
28
29
# File 'lib/postal/lmapi/lmapi.rb', line 27

def charSetID
  @charSetID
end

#fromObject

Returns the value of attribute from.



33
34
35
# File 'lib/postal/lmapi/lmapi.rb', line 33

def from
  @from
end

#htmlMessageObject

Returns the value of attribute htmlMessage.



25
26
27
# File 'lib/postal/lmapi/lmapi.rb', line 25

def htmlMessage
  @htmlMessage
end

#htmlSectionEncodingObject

Returns the value of attribute htmlSectionEncoding.



24
25
26
# File 'lib/postal/lmapi/lmapi.rb', line 24

def htmlSectionEncoding
  @htmlSectionEncoding
end

#isHtmlSectionEncodedObject

Returns the value of attribute isHtmlSectionEncoded.



23
24
25
# File 'lib/postal/lmapi/lmapi.rb', line 23

def isHtmlSectionEncoded
  @isHtmlSectionEncoded
end

#isTextSectionEncodedObject

Returns the value of attribute isTextSectionEncoded.



28
29
30
# File 'lib/postal/lmapi/lmapi.rb', line 28

def isTextSectionEncoded
  @isTextSectionEncoded
end

#subjectObject

Returns the value of attribute subject.



22
23
24
# File 'lib/postal/lmapi/lmapi.rb', line 22

def subject
  @subject
end

#textMessageObject

Returns the value of attribute textMessage.



31
32
33
# File 'lib/postal/lmapi/lmapi.rb', line 31

def textMessage
  @textMessage
end

#textSectionEncodingObject

Returns the value of attribute textSectionEncoding.



29
30
31
# File 'lib/postal/lmapi/lmapi.rb', line 29

def textSectionEncoding
  @textSectionEncoding
end

#titleObject

Returns the value of attribute title.



30
31
32
# File 'lib/postal/lmapi/lmapi.rb', line 30

def title
  @title
end

#toObject

Returns the value of attribute to.



26
27
28
# File 'lib/postal/lmapi/lmapi.rb', line 26

def to
  @to
end

Instance Method Details

#[](method) ⇒ Object

This lets us initialize a new MailingStruct by passing in a SimpleMailingStruct mail = Postal::Lmapi::MailingStruct.new(content)



54
55
56
57
58
59
60
# File 'lib/postal/lmapi/lmapi.rb', line 54

def [](method)
  begin
    self.send(method)
  rescue
    return nil
  end
end