Class: Tinkerforge::CallbackContext

Inherits:
Object
  • Object
show all
Defined in:
lib/tinkerforge/ip_connection.rb

Overview

internal

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCallbackContext

Returns a new instance of CallbackContext.



427
428
429
430
431
432
# File 'lib/tinkerforge/ip_connection.rb', line 427

def initialize
  @queue = nil
  @thread = nil
  @mutex = nil
  @packet_dispatch_allowed = false
end

Instance Attribute Details

#mutexObject

Returns the value of attribute mutex.



424
425
426
# File 'lib/tinkerforge/ip_connection.rb', line 424

def mutex
  @mutex
end

#packet_dispatch_allowedObject

Returns the value of attribute packet_dispatch_allowed.



425
426
427
# File 'lib/tinkerforge/ip_connection.rb', line 425

def packet_dispatch_allowed
  @packet_dispatch_allowed
end

#queueObject

Returns the value of attribute queue.



422
423
424
# File 'lib/tinkerforge/ip_connection.rb', line 422

def queue
  @queue
end

#threadObject

Returns the value of attribute thread.



423
424
425
# File 'lib/tinkerforge/ip_connection.rb', line 423

def thread
  @thread
end