Sha256: 4044b862e0ac0a2c52384ad7b29992d8417212f0cd7f4676ea6f34dcf6fba073

Contents?: true

Size: 544 Bytes

Versions: 18

Compression:

Stored size: 544 Bytes

Contents

class ContextIO
  class FolderSyncData
    attr_reader :name

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

    def initial_import_finished?
      attr_hash['initial_import_finished']
    end

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

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

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

    private

    def attr_hash
      @attr_hash
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contextio-2.0.0 lib/contextio/folder_sync_data.rb
contextio-1.8.1 lib/contextio/folder_sync_data.rb
contextio-1.8.0 lib/contextio/folder_sync_data.rb
contextio-1.7.2 lib/contextio/folder_sync_data.rb
contextio-1.7.1 lib/contextio/folder_sync_data.rb
contextio-1.7.0 lib/contextio/folder_sync_data.rb
contextio-1.6.0 lib/contextio/folder_sync_data.rb
contextio-1.5.0 lib/contextio/folder_sync_data.rb
contextio-1.4.0 lib/contextio/folder_sync_data.rb
contextio-1.3.0 lib/contextio/folder_sync_data.rb
contextio-1.2.4 lib/contextio/folder_sync_data.rb
contextio-1.2.3 lib/contextio/folder_sync_data.rb
contextio-1.2.2 lib/contextio/folder_sync_data.rb
contextio-1.2.1 lib/contextio/folder_sync_data.rb
contextio-1.2.0 lib/contextio/folder_sync_data.rb
contextio-1.1.0 lib/contextio/folder_sync_data.rb
contextio-1.0.1 lib/contextio/folder_sync_data.rb
contextio-1.0.0 lib/contextio/folder_sync_data.rb