Class: IRC::Client::Client

Inherits:
Object show all
Defined in:
lib/failirc/client/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server, mask) ⇒ Client

Returns a new instance of Client.



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

def initialize (server, mask)
    @client = client
    @server = server
    @mask   = mask

    @modes  = Modes.new
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



29
30
31
# File 'lib/failirc/client/client.rb', line 29

def client
  @client
end

#maskObject (readonly)

Returns the value of attribute mask.



29
30
31
# File 'lib/failirc/client/client.rb', line 29

def mask
  @mask
end

#modesObject (readonly)

Returns the value of attribute modes.



29
30
31
# File 'lib/failirc/client/client.rb', line 29

def modes
  @modes
end

#realNameObject

Returns the value of attribute realName.



30
31
32
# File 'lib/failirc/client/client.rb', line 30

def realName
  @realName
end

#serverObject (readonly)

Returns the value of attribute server.



29
30
31
# File 'lib/failirc/client/client.rb', line 29

def server
  @server
end

Instance Method Details

#hostObject



48
49
50
# File 'lib/failirc/client/client.rb', line 48

def host
    mask.host
end

#nickObject



40
41
42
# File 'lib/failirc/client/client.rb', line 40

def nick
    mask.nick
end

#to_sObject



52
53
54
# File 'lib/failirc/client/client.rb', line 52

def to_s
    mask.to_s
end

#userObject



44
45
46
# File 'lib/failirc/client/client.rb', line 44

def user
    mask.user
end