Class: Zm::Client::Message::Attachments

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

Overview

collection attachments

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAttachments

Returns a new instance of Attachments.



192
193
194
# File 'lib/zm/client/message/message.rb', line 192

def initialize
  @all = []
end

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.



191
192
193
# File 'lib/zm/client/message/message.rb', line 191

def all
  @all
end

Instance Method Details

#add(attachment) ⇒ Object



196
197
198
199
200
# File 'lib/zm/client/message/message.rb', line 196

def add(attachment)
  return unless attachment.is_a?(Attachment)

  @all.push(attachment)
end

#to_jsnsObject



202
203
204
# File 'lib/zm/client/message/message.rb', line 202

def to_jsns
  @all.map(&:to_jsns)
end