Class: Zm::Client::Message::Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/message/message.rb

Overview

class attachment for email

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Attachment

Returns a new instance of Attachment.

Yields:

  • (_self)

Yield Parameters:



154
155
156
# File 'lib/zm/client/message/message.rb', line 154

def initialize
  yield(self) if block_given?
end

Instance Attribute Details

#aidObject

Returns the value of attribute aid.



152
153
154
# File 'lib/zm/client/message/message.rb', line 152

def aid
  @aid
end

#midObject

Returns the value of attribute mid.



152
153
154
# File 'lib/zm/client/message/message.rb', line 152

def mid
  @mid
end

#partObject

Returns the value of attribute part.



152
153
154
# File 'lib/zm/client/message/message.rb', line 152

def part
  @part
end

Instance Method Details

#to_jsnsObject



158
159
160
161
162
163
164
# File 'lib/zm/client/message/message.rb', line 158

def to_jsns
  {
    part: @part,
    mid: @mid,
    aid: @aid
  }.reject { |_, v| v.nil? }
end