Class: Zm::Client::FolderRetentionPolicy

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

Overview

class for account folder retention policy

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lifetimeObject

Returns the value of attribute lifetime.



7
8
9
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 7

def lifetime
  @lifetime
end

#policyObject

Returns the value of attribute policy.



7
8
9
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 7

def policy
  @policy
end

#typeObject

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

Returns:

  • (Boolean)


16
17
18
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 16

def keep?
  @policy == :keep
end

#purge?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/zm/client/folder/folder_retention_policy.rb', line 20

def purge?
  @policy == :purge
end