class Envoi::Aspera::WatchService::WatchFolder::Subscription::Snapshot::Entry

Public Class Methods

new(data) click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 30
def initialize(data)
  merge! data
end
new_from_match_data(match_data) click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 47
def self.new_from_match_data(match_data)
  new(match_data.named_captures)
end

Public Instance Methods

path() click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 34
def path;
  self[:path]
end
stat() click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 38
def stat;
  self[:stat] ||= ((json = self[:stat_as_json]) ? JSON.parse(json) : nil)
end
stat_as_json() click to toggle source
# File lib/envoi/aspera/watch_service/watch_folder.rb, line 42
def stat_as_json;
  self[:stat_as_json]
end