Class: Zm::Client::Message::Attachment
- Inherits:
-
Object
- Object
- Zm::Client::Message::Attachment
- Defined in:
- lib/zm/client/message/message.rb
Overview
class attachment for email
Instance Attribute Summary collapse
-
#aid ⇒ Object
Returns the value of attribute aid.
-
#mid ⇒ Object
Returns the value of attribute mid.
-
#part ⇒ Object
Returns the value of attribute part.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Attachment
constructor
A new instance of Attachment.
- #to_jsns ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Attachment
Returns a new instance of Attachment.
154 155 156 |
# File 'lib/zm/client/message/message.rb', line 154 def initialize yield(self) if block_given? end |
Instance Attribute Details
#aid ⇒ Object
Returns the value of attribute aid.
152 153 154 |
# File 'lib/zm/client/message/message.rb', line 152 def aid @aid end |
#mid ⇒ Object
Returns the value of attribute mid.
152 153 154 |
# File 'lib/zm/client/message/message.rb', line 152 def mid @mid end |
#part ⇒ Object
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_jsns ⇒ Object
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 |