Class: IRCSupport::Message::Topic
- Inherits:
 - 
      IRCSupport::Message
      
        
- Object
 - IRCSupport::Message
 - IRCSupport::Message::Topic
 
 
- Defined in:
 - lib/ircsupport/message.rb
 
Instance Attribute Summary collapse
- 
  
    
      #changer  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The user or server which is changing the topic.
 - 
  
    
      #channel  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the channel.
 - 
  
    
      #topic  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The new topic.
 
Attributes inherited from IRCSupport::Message
Instance Method Summary collapse
- 
  
    
      #initialize(args)  ⇒ Topic 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Topic.
 
Methods inherited from IRCSupport::Message
Constructor Details
#initialize(args) ⇒ Topic
Returns a new instance of Topic.
      428 429 430 431 432 433 434  | 
    
      # File 'lib/ircsupport/message.rb', line 428 def initialize(args) super(args) @changer = args[:prefix] @channel = args[:args][0] @topic = args[:args][1] @topic = nil if @topic && @topic.empty? end  | 
  
Instance Attribute Details
#changer ⇒ String
Returns The user or server which is changing the topic.
      419 420 421  | 
    
      # File 'lib/ircsupport/message.rb', line 419 def changer @changer end  | 
  
#channel ⇒ String
Returns The name of the channel.
      422 423 424  | 
    
      # File 'lib/ircsupport/message.rb', line 422 def channel @channel end  | 
  
#topic ⇒ String
Returns The new topic.
      425 426 427  | 
    
      # File 'lib/ircsupport/message.rb', line 425 def topic @topic end  |