Method: Twib::Response#initialize

Defined in:
lib/twib.rb

#initialize(device_id, object_id, result_code, tag, payload, object_ids) ⇒ Response

Returns a new instance of Response.

Parameters:

  • device_id (Integer)

    ID of the device that this response originated from.

  • object_id (Integer)

    ID of the bridge object that this response originated from.

  • result_code (Integer)

    Result code

  • tag (Integer)

    Tag corresponding to the request that prompted this response.

  • payload (String)

    Raw data associated with the response

  • object_ids (Array<Integer>)

    Object IDs sent with the response



31
32
33
34
35
36
37
38
# File 'lib/twib.rb', line 31

def initialize(device_id, object_id, result_code, tag, payload, object_ids)
  @device_id = device_id
  @object_id = object_id
  @result_code = result_code
  @tag = tag
  @payload = payload
  @object_ids = object_ids
end