Class: Quark::MdkRuntime::Files::FileContents
- Inherits:
-
DatawireQuarkCore::QuarkObject
- Object
- DatawireQuarkCore::QuarkObject
- Quark::MdkRuntime::Files::FileContents
- Extended by:
- DatawireQuarkCore::Static
- Defined in:
- lib/mdk_runtime/files.rb
Overview
Message from FileActor with contents of a file.
Constant Summary
Constants included from DatawireQuarkCore::Static
DatawireQuarkCore::Static::Unassigned
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #__init_fields__ ⇒ Object
- #_getClass ⇒ Object
- #_getField(name) ⇒ Object
- #_setField(name, value) ⇒ Object
-
#initialize(path, contents) ⇒ FileContents
constructor
A new instance of FileContents.
Methods included from DatawireQuarkCore::Static
_lazy_statics, static, unlazy_statics
Methods inherited from DatawireQuarkCore::QuarkObject
Constructor Details
#initialize(path, contents) ⇒ FileContents
Returns a new instance of FileContents.
88 89 90 91 92 93 94 95 |
# File 'lib/mdk_runtime/files.rb', line 88 def initialize(path, contents) self.__init_fields__ (self).path = path (self).contents = contents nil end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
81 82 83 |
# File 'lib/mdk_runtime/files.rb', line 81 def contents @contents end |
#path ⇒ Object
Returns the value of attribute path.
81 82 83 |
# File 'lib/mdk_runtime/files.rb', line 81 def path @path end |
Instance Method Details
#__init_fields__ ⇒ Object
132 133 134 135 136 137 138 |
# File 'lib/mdk_runtime/files.rb', line 132 def __init_fields__() self.path = nil self.contents = nil nil end |
#_getClass ⇒ Object
100 101 102 103 104 105 |
# File 'lib/mdk_runtime/files.rb', line 100 def _getClass() return "mdk_runtime.files.FileContents" nil end |
#_getField(name) ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/mdk_runtime/files.rb', line 107 def _getField(name) if ((name) == ("path")) return (self).path end if ((name) == ("contents")) return (self).contents end return nil nil end |
#_setField(name, value) ⇒ Object
120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/mdk_runtime/files.rb', line 120 def _setField(name, value) if ((name) == ("path")) (self).path = ::DatawireQuarkCore.cast(value) { ::String } end if ((name) == ("contents")) (self).contents = ::DatawireQuarkCore.cast(value) { ::String } end nil end |