Class: Tox::OutFriendMessage
- Inherits:
-
Object
- Object
- Tox::OutFriendMessage
- Includes:
- OutMessage
- Defined in:
- lib/tox/out_friend_message.rb
Overview
Outgoing friend message representation in Tox client.
Instance Attribute Summary collapse
-
#friend ⇒ Object
Returns the value of attribute friend.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(friend, id) ⇒ OutFriendMessage
constructor
A new instance of OutFriendMessage.
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
#friend ⇒ Object
Returns the value of attribute friend.
10 11 12 |
# File 'lib/tox/out_friend_message.rb', line 10 def friend @friend end |
#id ⇒ Object
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
#client ⇒ Object
17 18 19 |
# File 'lib/tox/out_friend_message.rb', line 17 def client friend.client end |