Class: ContextIO::FolderSyncData

Inherits:
Object
  • Object
show all
Defined in:
lib/contextio/folder_sync_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, attr_hash) ⇒ FolderSyncData

Returns a new instance of FolderSyncData.



5
6
7
8
# File 'lib/contextio/folder_sync_data.rb', line 5

def initialize(name, attr_hash)
  @name = name
  @attr_hash = attr_hash
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/contextio/folder_sync_data.rb', line 3

def name
  @name
end

Instance Method Details

#initial_import_finished?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/contextio/folder_sync_data.rb', line 10

def initial_import_finished?
  attr_hash['initial_import_finished']
end

#last_expunged_atObject



14
15
16
# File 'lib/contextio/folder_sync_data.rb', line 14

def last_expunged_at
  Time.at(attr_hash['last_expunge'])
end

#last_sync_started_atObject



18
19
20
# File 'lib/contextio/folder_sync_data.rb', line 18

def last_sync_started_at
  Time.at(attr_hash['last_sync_start'])
end

#last_sync_stopped_atObject



22
23
24
# File 'lib/contextio/folder_sync_data.rb', line 22

def last_sync_stopped_at
  Time.at(attr_hash['last_sync_stop'])
end