class Envoi::Aspera::WatchService::WatchFolder::Subscription::Snapshot
Attributes
entries[RW]
subscription[RW]
version[RW]
Public Class Methods
new(subscription, version)
click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 61 def initialize(subscription, version) @subscription = subscription @version = version @entries = nil end
Public Instance Methods
client()
click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 67 def client subscription.client end
differential(from = nil)
click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 80 def differential(from = nil) (@differentials ||= {})[from] ||= differential_no_cache(from: from) end
differential_no_cache(args = {})
click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 84 def differential_no_cache(args = {}) args_out = args.dup args_out[:subscription_id] ||= subscription['identifier'] args_out[:to] ||= version client.subscription_snapshot_differential(args_out) end
entries_by_path()
click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 91 def entries_by_path @entries_by_hash ||= Hash[entries.map { |e| [e[:path], e] }] end
logger()
click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 71 def logger client.logger end