Class: Yaic::WhoResult

Inherits:
Object
  • Object
show all
Defined in:
lib/yaic/who_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel:, user:, host:, server:, nick:, away:, realname:) ⇒ WhoResult

Returns a new instance of WhoResult.



7
8
9
10
11
12
13
14
15
# File 'lib/yaic/who_result.rb', line 7

def initialize(channel:, user:, host:, server:, nick:, away:, realname:)
  @channel = channel
  @user = user
  @host = host
  @server = server
  @nick = nick
  @away = away
  @realname = realname
end

Instance Attribute Details

#awayObject (readonly)

Returns the value of attribute away.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def away
  @away
end

#channelObject (readonly)

Returns the value of attribute channel.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def channel
  @channel
end

#hostObject (readonly)

Returns the value of attribute host.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def host
  @host
end

#nickObject (readonly)

Returns the value of attribute nick.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def nick
  @nick
end

#realnameObject (readonly)

Returns the value of attribute realname.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def realname
  @realname
end

#serverObject (readonly)

Returns the value of attribute server.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def server
  @server
end

#userObject (readonly)

Returns the value of attribute user.



5
6
7
# File 'lib/yaic/who_result.rb', line 5

def user
  @user
end