Class: FileEvent
- Inherits:
-
Object
- Object
- FileEvent
- Defined in:
- lib/meshx-plugin-sdk.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#originalpath ⇒ Object
Returns the value of attribute originalpath.
-
#path ⇒ Object
Returns the value of attribute path.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(hash) ⇒ FileEvent
constructor
A new instance of FileEvent.
Constructor Details
#initialize(hash) ⇒ FileEvent
Returns a new instance of FileEvent.
251 252 253 254 255 256 257 258 259 260 |
# File 'lib/meshx-plugin-sdk.rb', line 251 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
#filename ⇒ Object
Returns the value of attribute filename.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def filename @filename end |
#kind ⇒ Object
Returns the value of attribute kind.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def kind @kind end |
#metadata ⇒ Object
Returns the value of attribute metadata.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def @metadata end |
#origin ⇒ Object
Returns the value of attribute origin.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def origin @origin end |
#originalpath ⇒ Object
Returns the value of attribute originalpath.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def originalpath @originalpath end |
#path ⇒ Object
Returns the value of attribute path.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def path @path end |
#version ⇒ Object
Returns the value of attribute version.
249 250 251 |
# File 'lib/meshx-plugin-sdk.rb', line 249 def version @version end |