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.
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
#filename ⇒ Object
Returns the value of attribute filename.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def filename @filename end |
#kind ⇒ Object
Returns the value of attribute kind.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def kind @kind end |
#metadata ⇒ Object
Returns the value of attribute metadata.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def @metadata end |
#origin ⇒ Object
Returns the value of attribute origin.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def origin @origin end |
#originalpath ⇒ Object
Returns the value of attribute originalpath.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def originalpath @originalpath end |
#path ⇒ Object
Returns the value of attribute path.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def path @path end |
#version ⇒ Object
Returns the value of attribute version.
250 251 252 |
# File 'lib/meshx-plugin-sdk.rb', line 250 def version @version end |