Class: RBGL::GUI::Wayland::WaylandObject

Inherits:
Object
  • Object
show all
Defined in:
lib/rbgl/gui/wayland/protocol_objects/arguments.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, id) ⇒ WaylandObject

Returns a new instance of WaylandObject.



40
41
42
43
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 40

def initialize(connection, id)
  @connection = connection
  @id = id
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



38
39
40
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 38

def connection
  @connection
end

#idObject (readonly)

Returns the value of attribute id.



38
39
40
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 38

def id
  @id
end

Instance Method Details

#send_request(opcode, *args) ⇒ Object



45
46
47
# File 'lib/rbgl/gui/wayland/protocol_objects/arguments.rb', line 45

def send_request(opcode, *args)
  @connection.send_request(@id, opcode, *args)
end