Class: Quark::MdkRuntime::Files::FileContents

Inherits:
DatawireQuarkCore::QuarkObject show all
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

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Methods inherited from DatawireQuarkCore::QuarkObject

#to_s

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

#contentsObject

Returns the value of attribute contents.



81
82
83
# File 'lib/mdk_runtime/files.rb', line 81

def contents
  @contents
end

#pathObject

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

#_getClassObject



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