Class: IRC::Server::Modules::Base::Utils::Channel::Ban

Inherits:
Object
  • Object
show all
Defined in:
lib/failirc/server/modules/Base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(by, channel, mask) ⇒ Ban

Returns a new instance of Ban.



355
356
357
358
359
360
# File 'lib/failirc/server/modules/Base.rb', line 355

def initialize (by, channel, mask)
    @setBy   = by
    @setOn   = Time.now
    @channel = channel
    @mask    = mask
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



353
354
355
# File 'lib/failirc/server/modules/Base.rb', line 353

def channel
  @channel
end

#maskObject (readonly)

Returns the value of attribute mask.



353
354
355
# File 'lib/failirc/server/modules/Base.rb', line 353

def mask
  @mask
end

#setByObject (readonly)

Returns the value of attribute setBy.



353
354
355
# File 'lib/failirc/server/modules/Base.rb', line 353

def setBy
  @setBy
end

#setOnObject (readonly)

Returns the value of attribute setOn.



353
354
355
# File 'lib/failirc/server/modules/Base.rb', line 353

def setOn
  @setOn
end

Instance Method Details

#to_sObject



362
363
364
# File 'lib/failirc/server/modules/Base.rb', line 362

def to_s
    "#{channel} #{mask} #{setBy.nick} #{setOn.tv_sec}"
end