Class: Zimbra::Folder
- Inherits:
-
Object
- Object
- Zimbra::Folder
- Defined in:
- lib/zimbra/folder.rb
Direct Known Subclasses
Constant Summary collapse
- ATTRS =
[ :id, :uuid, :name, :view, :absolute_folder_path, :parent_folder_id, :parent_folder_uuid, :non_folder_item_count, :non_folder_item_size, :revision, :imap_next_uid, :imap_modified_sequence, :modified_sequence, :activesync_disabled, :modified_date ]
Class Method Summary collapse
Instance Method Summary collapse
- #attributes=(args = {}) ⇒ Object
-
#initialize(args = {}) ⇒ Folder
constructor
A new instance of Folder.
Constructor Details
#initialize(args = {}) ⇒ Folder
Returns a new instance of Folder.
24 25 26 |
# File 'lib/zimbra/folder.rb', line 24 def initialize(args = {}) self.attributes = args end |
Class Method Details
.all ⇒ Object
5 6 7 |
# File 'lib/zimbra/folder.rb', line 5 def all FolderService.all end |
.find_all_by_view(view) ⇒ Object
9 10 11 |
# File 'lib/zimbra/folder.rb', line 9 def find_all_by_view(view) FolderService.find_all_by_view(view) end |
Instance Method Details
#attributes=(args = {}) ⇒ Object
28 29 30 31 32 |
# File 'lib/zimbra/folder.rb', line 28 def attributes=(args = {}) ATTRS.each do |attr_name| self.send(:"#{attr_name}=", (args[attr_name] || args[attr_name.to_s])) if args.has_key?(attr_name) || args.has_key?(attr_name.to_s) end end |