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.
10 11 12 13 14 15 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 10 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.
8 9 10 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 8 def lifetime @lifetime end |
#policy ⇒ Object
Returns the value of attribute policy.
8 9 10 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 8 def policy @policy end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 8 def type @type end |
Instance Method Details
#keep? ⇒ Boolean
17 18 19 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 17 def keep? @policy == :keep end |
#purge? ⇒ Boolean
21 22 23 |
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 21 def purge? @policy == :purge end |