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

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) ⇒ Invitation

Returns a new instance of Invitation.



370
371
372
373
374
375
# File 'lib/failirc/server/modules/Base.rb', line 370

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.



368
369
370
# File 'lib/failirc/server/modules/Base.rb', line 368

def channel
  @channel
end

#maskObject (readonly)

Returns the value of attribute mask.



368
369
370
# File 'lib/failirc/server/modules/Base.rb', line 368

def mask
  @mask
end

#setByObject (readonly)

Returns the value of attribute setBy.



368
369
370
# File 'lib/failirc/server/modules/Base.rb', line 368

def setBy
  @setBy
end

#setOnObject (readonly)

Returns the value of attribute setOn.



368
369
370
# File 'lib/failirc/server/modules/Base.rb', line 368

def setOn
  @setOn
end

Instance Method Details

#to_sObject



377
378
379
# File 'lib/failirc/server/modules/Base.rb', line 377

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