Class: ProconBypassMan::DeviceConnection::Executer::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/device_connection/executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values:, read_from:, call_block_if_receive: false, &block) ⇒ Value

Returns a new instance of Value.



7
8
9
10
11
12
# File 'lib/procon_bypass_man/device_connection/executor.rb', line 7

def initialize(values: , read_from: , call_block_if_receive: false, &block)
  @values = values
  @read_from = read_from
  @call_block_if_receive = call_block_if_receive
  @block = block
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



5
6
7
# File 'lib/procon_bypass_man/device_connection/executor.rb', line 5

def block
  @block
end

#call_block_if_receiveObject

Returns the value of attribute call_block_if_receive.



5
6
7
# File 'lib/procon_bypass_man/device_connection/executor.rb', line 5

def call_block_if_receive
  @call_block_if_receive
end

#read_fromObject

Returns the value of attribute read_from.



5
6
7
# File 'lib/procon_bypass_man/device_connection/executor.rb', line 5

def read_from
  @read_from
end

#valuesObject

Returns the value of attribute values.



5
6
7
# File 'lib/procon_bypass_man/device_connection/executor.rb', line 5

def values
  @values
end