Class: Operaton::Bpm::Engine::Variable::FileValue
- Inherits:
-
TypedValue
- Object
- TypedValue
- Operaton::Bpm::Engine::Variable::FileValue
- Defined in:
- lib/operaton/bpm/engine/variable/typed_value.rb
Overview
Mirrors org.operaton.bpm.engine.variable.value.FileValue (FileValueImpl)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
Attributes inherited from TypedValue
Instance Method Summary collapse
- #byte_array ⇒ Object
-
#initialize(filename, byte_array = nil, is_transient = false) ⇒ FileValue
constructor
A new instance of FileValue.
-
#set_value(bytes) ⇒ Object
rubocop:disable Naming/AccessorMethodName.
Methods inherited from TypedValue
Constructor Details
#initialize(filename, byte_array = nil, is_transient = false) ⇒ FileValue
Returns a new instance of FileValue.
137 138 139 140 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 137 def initialize(filename, byte_array = nil, is_transient = false) super(byte_array, ValueType::FILE, is_transient) @filename = filename end |
Instance Attribute Details
#encoding ⇒ Object
Returns the value of attribute encoding.
135 136 137 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 135 def encoding @encoding end |
#filename ⇒ Object
Returns the value of attribute filename.
135 136 137 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 135 def filename @filename end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
135 136 137 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 135 def mime_type @mime_type end |
Instance Method Details
#byte_array ⇒ Object
142 143 144 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 142 def byte_array @value end |
#set_value(bytes) ⇒ Object
rubocop:disable Naming/AccessorMethodName
146 147 148 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 146 def set_value(bytes) # rubocop:disable Naming/AccessorMethodName @value = bytes end |