Class: FileEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/meshx-plugin-sdk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ FileEvent

Returns a new instance of FileEvent.



255
256
257
258
259
260
261
262
263
264
# File 'lib/meshx-plugin-sdk.rb', line 255

def initialize(hash)
  @kind = hash["kind"]
  @version = hash["version"]
   = .new(hash["metadata"])
  @origin = hash["origin"]
  @path = hash["path"]
  @filename = hash["filename"]
  @originalpath = hash["originalpath"]
  @origin = hash["origin"]
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def filename
  @filename
end

#kindObject

Returns the value of attribute kind.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def kind
  @kind
end

#metadataObject

Returns the value of attribute metadata.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def 
  
end

#originObject

Returns the value of attribute origin.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def origin
  @origin
end

#originalpathObject

Returns the value of attribute originalpath.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def originalpath
  @originalpath
end

#pathObject

Returns the value of attribute path.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def path
  @path
end

#versionObject

Returns the value of attribute version.



253
254
255
# File 'lib/meshx-plugin-sdk.rb', line 253

def version
  @version
end