Class: Zm::Client::Backup

Inherits:
Zm::Client::Base::Object show all
Defined in:
lib/zm/client/backup/backup.rb

Instance Attribute Summary collapse

Attributes inherited from Zm::Client::Base::Object

#id, #parent, #token

Instance Method Summary collapse

Methods inherited from Zm::Client::Base::Object

#clone, #initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute

Constructor Details

This class inherits a constructor from Zm::Client::Base::Object

Instance Attribute Details

#aborted ⇒ Object

Returns the value of attribute aborted.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def aborted
  @aborted
end

#accounts ⇒ Object

Returns the value of attribute accounts.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def accounts
  @accounts
end

#end ⇒ Object

Returns the value of attribute end.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def end
  @end
end

#label ⇒ Object Also known as: name

Returns the value of attribute label.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def label
  @label
end

#live ⇒ Object

Returns the value of attribute live.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def live
  @live
end

#maxRedoSeq ⇒ Object

Returns the value of attribute maxRedoSeq.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def maxRedoSeq
  @maxRedoSeq
end

#minRedoSeq ⇒ Object

Returns the value of attribute minRedoSeq.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def minRedoSeq
  @minRedoSeq
end

#start ⇒ Object

Returns the value of attribute start.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def start
  @start
end

#type ⇒ Object

Returns the value of attribute type.



6
7
8
# File 'lib/zm/client/backup/backup.rb', line 6

def type
  @type
end

Instance Method Details

#end_at ⇒ Object



22
23
24
25
26
27
28
# File 'lib/zm/client/backup/backup.rb', line 22

def end_at
  return @end_at if defined? @end_at

  @end_at = Time.at(@end / 1000)
rescue StandardError
  nil
end

#full? ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/zm/client/backup/backup.rb', line 30

def full?
  @type == Zm::Client::BackupTypes::FULL
end

#incremental? ⇒ Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/zm/client/backup/backup.rb', line 34

def incremental?
  @type == Zm::Client::BackupTypes::INCREMENTAL
end

#server ⇒ Object



10
11
12
# File 'lib/zm/client/backup/backup.rb', line 10

def server
  parent
end

#start_at ⇒ Object



14
15
16
17
18
19
20
# File 'lib/zm/client/backup/backup.rb', line 14

def start_at
  return @start_at if defined? @start_at

  @start_at = Time.at(@start / 1000)
rescue StandardError
  nil
end