Class: FseventsToVm::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/fsevents_to_vm/event.rb

Overview

path: String mtime: String event_time: Time

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#event_timeObject

Returns the value of attribute event_time

Returns:

  • (Object)

    the current value of event_time



5
6
7
# File 'lib/fsevents_to_vm/event.rb', line 5

def event_time
  @event_time
end

#mtimeObject

Returns the value of attribute mtime

Returns:

  • (Object)

    the current value of mtime



5
6
7
# File 'lib/fsevents_to_vm/event.rb', line 5

def mtime
  @mtime
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/fsevents_to_vm/event.rb', line 5

def path
  @path
end

Class Method Details

.format_time(time) ⇒ Object



6
7
8
# File 'lib/fsevents_to_vm/event.rb', line 6

def self.format_time(time)
  time.utc.strftime("%Y%m%d%H%M.%S")
end