Class: Yaic::WhoisResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nick:) ⇒ WhoisResult

Returns a new instance of WhoisResult.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/yaic/whois_result.rb', line 7

def initialize(nick:)
  @nick = nick
  @user = nil
  @host = nil
  @realname = nil
  @channels = []
  @server = nil
  @idle = nil
  @signon = nil
  @account = nil
  @away = nil
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



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

def 
  @account
end

#awayObject

Returns the value of attribute away.



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

def away
  @away
end

#channelsObject

Returns the value of attribute channels.



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

def channels
  @channels
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#idleObject

Returns the value of attribute idle.



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

def idle
  @idle
end

#nickObject

Returns the value of attribute nick.



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

def nick
  @nick
end

#realnameObject

Returns the value of attribute realname.



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

def realname
  @realname
end

#serverObject

Returns the value of attribute server.



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

def server
  @server
end

#signonObject

Returns the value of attribute signon.



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

def signon
  @signon
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end