Class: Zm::Client::Message::AttachmentsCollection
- Inherits:
-
Object
- Object
- Zm::Client::Message::AttachmentsCollection
- Includes:
- MissingMethodStaticCollection
- Defined in:
- lib/zm/client/message/attachments_collection.rb
Overview
collection attachments
Instance Attribute Summary collapse
-
#all ⇒ Object
readonly
Returns the value of attribute all.
Instance Method Summary collapse
- #add(attachment) ⇒ Object
-
#initialize ⇒ AttachmentsCollection
constructor
A new instance of AttachmentsCollection.
Methods included from MissingMethodStaticCollection
Constructor Details
#initialize ⇒ AttachmentsCollection
Returns a new instance of AttachmentsCollection.
12 13 14 |
# File 'lib/zm/client/message/attachments_collection.rb', line 12 def initialize @all = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MissingMethodStaticCollection
Instance Attribute Details
#all ⇒ Object (readonly)
Returns the value of attribute all.
10 11 12 |
# File 'lib/zm/client/message/attachments_collection.rb', line 10 def all @all end |
Instance Method Details
#add(attachment) ⇒ Object
16 17 18 19 20 |
# File 'lib/zm/client/message/attachments_collection.rb', line 16 def add() return unless .is_a?(Attachment) @all.push() end |