Class: Zm::Client::FolderRetentionPolicy
- Inherits:
-
Object
- Object
- Zm::Client::FolderRetentionPolicy
- Defined in:
- lib/zm/client/folder/folder_retention_policy.rb
Overview
class for account folder retention policy
Instance Attribute Summary collapse
-
#lifetime ⇒ Object
Returns the value of attribute lifetime.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(parent, policy, lifetime, type) ⇒ FolderRetentionPolicy
constructor
A new instance of FolderRetentionPolicy.
- #keep? ⇒ Boolean
- #purge? ⇒ Boolean
Constructor Details
#initialize(parent, policy, lifetime, type) ⇒ FolderRetentionPolicy
Returns a new instance of FolderRetentionPolicy.
9 10 11 12 13 14 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 9 def initialize(parent, policy, lifetime, type) @parent = parent @policy = policy @lifetime = lifetime @type = type end |
Instance Attribute Details
#lifetime ⇒ Object
Returns the value of attribute lifetime.
7 8 9 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 7 def lifetime @lifetime end |
#policy ⇒ Object
Returns the value of attribute policy.
7 8 9 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 7 def policy @policy end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 7 def type @type end |
Instance Method Details
#keep? ⇒ Boolean
16 17 18 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 16 def keep? @policy == :keep end |
#purge? ⇒ Boolean
20 21 22 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 20 def purge? @policy == :purge end |