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.



252
253
254
255
256
257
258
259
260
261
# File 'lib/meshx-plugin-sdk.rb', line 252

def initialize(hash)
  @kind = hash["kind"]
  @version = hash["version"]
  @metadata = MetaData.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.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def filename
  @filename
end

#kindObject

Returns the value of attribute kind.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def kind
  @kind
end

#metadataObject

Returns the value of attribute metadata.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def 
  @metadata
end

#originObject

Returns the value of attribute origin.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def origin
  @origin
end

#originalpathObject

Returns the value of attribute originalpath.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def originalpath
  @originalpath
end

#pathObject

Returns the value of attribute path.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def path
  @path
end

#versionObject

Returns the value of attribute version.



250
251
252
# File 'lib/meshx-plugin-sdk.rb', line 250

def version
  @version
end