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

#abortedObject

Returns the value of attribute aborted.



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

def aborted
  @aborted
end

#accountsObject

Returns the value of attribute accounts.



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

def accounts
  @accounts
end

#endObject

Returns the value of attribute end.



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

def end
  @end
end

#labelObject 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

#liveObject

Returns the value of attribute live.



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

def live
  @live
end

#maxRedoSeqObject

Returns the value of attribute maxRedoSeq.



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

def maxRedoSeq
  @maxRedoSeq
end

#minRedoSeqObject

Returns the value of attribute minRedoSeq.



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

def minRedoSeq
  @minRedoSeq
end

#startObject

Returns the value of attribute start.



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

def start
  @start
end

#typeObject

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_atObject



20
21
22
23
24
# File 'lib/zm/client/backup/backup.rb', line 20

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

#full?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/zm/client/backup/backup.rb', line 26

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

#incremental?Boolean

Returns:

  • (Boolean)


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

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

#serverObject



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

def server
  parent
end

#start_atObject



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

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