Class: Operaton::Bpm::Engine::Variable::FileValue

Inherits:
TypedValue
  • Object
show all
Defined in:
lib/operaton/bpm/engine/variable/typed_value.rb

Overview

Mirrors org.operaton.bpm.engine.variable.value.FileValue (FileValueImpl)

Instance Attribute Summary collapse

Attributes inherited from TypedValue

#is_transient, #type, #value

Instance Method Summary collapse

Methods inherited from TypedValue

#to_s, #transient?

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

#encodingObject

Returns the value of attribute encoding.



135
136
137
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 135

def encoding
  @encoding
end

#filenameObject

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_typeObject

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_arrayObject



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