Class: ContextIO::FolderSyncData
- Inherits:
-
Object
- Object
- ContextIO::FolderSyncData
- Defined in:
- lib/contextio/folder_sync_data.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #initial_import_finished? ⇒ Boolean
-
#initialize(name, attr_hash) ⇒ FolderSyncData
constructor
A new instance of FolderSyncData.
- #last_expunged_at ⇒ Object
- #last_sync_started_at ⇒ Object
- #last_sync_stopped_at ⇒ Object
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
#name ⇒ Object (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
10 11 12 |
# File 'lib/contextio/folder_sync_data.rb', line 10 def initial_import_finished? attr_hash['initial_import_finished'] end |
#last_expunged_at ⇒ Object
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_at ⇒ Object
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_at ⇒ Object
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 |