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.



518
519
520
521
522
523
# File 'lib/tinkerforge/ip_connection.rb', line 518

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

Instance Attribute Details

#mutexObject

Returns the value of attribute mutex.



515
516
517
# File 'lib/tinkerforge/ip_connection.rb', line 515

def mutex
  @mutex
end

#packet_dispatch_allowedObject

Returns the value of attribute packet_dispatch_allowed.



516
517
518
# File 'lib/tinkerforge/ip_connection.rb', line 516

def packet_dispatch_allowed
  @packet_dispatch_allowed
end

#queueObject

Returns the value of attribute queue.



513
514
515
# File 'lib/tinkerforge/ip_connection.rb', line 513

def queue
  @queue
end

#threadObject

Returns the value of attribute thread.



514
515
516
# File 'lib/tinkerforge/ip_connection.rb', line 514

def thread
  @thread
end