Class: IRC::Server::Modules::Base::Utils::Channel::Invitation
- Defined in:
- lib/failirc/server/modules/Base.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#setBy ⇒ Object
readonly
Returns the value of attribute setBy.
-
#setOn ⇒ Object
readonly
Returns the value of attribute setOn.
Instance Method Summary collapse
-
#initialize(by, channel, mask) ⇒ Invitation
constructor
A new instance of Invitation.
- #to_s ⇒ Object
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
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
368 369 370 |
# File 'lib/failirc/server/modules/Base.rb', line 368 def channel @channel end |
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
368 369 370 |
# File 'lib/failirc/server/modules/Base.rb', line 368 def mask @mask end |
#setBy ⇒ Object (readonly)
Returns the value of attribute setBy.
368 369 370 |
# File 'lib/failirc/server/modules/Base.rb', line 368 def setBy @setBy end |
#setOn ⇒ Object (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_s ⇒ Object
377 378 379 |
# File 'lib/failirc/server/modules/Base.rb', line 377 def to_s "#{channel} #{mask} #{setBy.nick} #{setOn.tv_sec}" end |