Class: Discorb::Presence::Activity::Button
- Inherits:
 - 
      DiscordModel
      
        
- Object
 - DiscordModel
 - Discorb::Presence::Activity::Button
 
 
- Defined in:
 - lib/discorb/presence.rb
 
Overview
Represents a button of an activity.
Instance Attribute Summary collapse
- 
  
    
      #label -> String 
    
    
      (also: #text)
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The text of the button.
 - 
  
    
      #url -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The URL of the button.
 
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#label -> String (readonly) Also known as: text
Returns The text of the button.
      242 243 244  | 
    
      # File 'lib/discorb/presence.rb', line 242 def label @label end  | 
  
#url -> String (readonly)
Returns The URL of the button.
      244 245 246  | 
    
      # File 'lib/discorb/presence.rb', line 244 def url @url end  |