Class: Tox::OutFriendMessage

Inherits:
Object
  • Object
show all
Includes:
OutMessage
Defined in:
lib/tox/out_friend_message.rb

Overview

Outgoing friend message representation in Tox client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from OutMessage

#==

Constructor Details

#initialize(friend, id) ⇒ OutFriendMessage

Returns a new instance of OutFriendMessage.



12
13
14
15
# File 'lib/tox/out_friend_message.rb', line 12

def initialize(friend, id)
  self.friend = friend
  self.id = id
end

Instance Attribute Details

#friendObject

Returns the value of attribute friend.



10
11
12
# File 'lib/tox/out_friend_message.rb', line 10

def friend
  @friend
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/tox/out_friend_message.rb', line 10

def id
  @id
end

Instance Method Details

#clientObject



17
18
19
# File 'lib/tox/out_friend_message.rb', line 17

def client
  friend.client
end