Module: Card::FollowOption
- Defined in:
 - lib/card/follow_option.rb
 
Overview
module to be included in cards used as options for follow rules
Class Attribute Summary collapse
- 
  
    
      .follower_candidate_ids  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute follower_candidate_ids.
 - 
  
    
      .options  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute options.
 - 
  
    
      .test  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute test.
 
Class Method Summary collapse
- .cards ⇒ Object
 - .codenames(type = :all) ⇒ Object
 - .main_options ⇒ Object
 - .restrictive_options ⇒ Object
 
Class Attribute Details
.follower_candidate_ids ⇒ Object (readonly)
Returns the value of attribute follower_candidate_ids.
      14 15 16  | 
    
      # File 'lib/card/follow_option.rb', line 14 def follower_candidate_ids @follower_candidate_ids end  | 
  
.options ⇒ Object (readonly)
Returns the value of attribute options.
      14 15 16  | 
    
      # File 'lib/card/follow_option.rb', line 14 def @options end  | 
  
.test ⇒ Object (readonly)
Returns the value of attribute test.
      14 15 16  | 
    
      # File 'lib/card/follow_option.rb', line 14 def test @test end  | 
  
Class Method Details
.cards ⇒ Object
      20 21 22  | 
    
      # File 'lib/card/follow_option.rb', line 20 def cards codenames.map { |codename| Card[codename] } end  | 
  
.codenames(type = :all) ⇒ Object
      16 17 18  | 
    
      # File 'lib/card/follow_option.rb', line 16 def codenames type=:all [type] end  | 
  
.main_options ⇒ Object
      28 29 30  | 
    
      # File 'lib/card/follow_option.rb', line 28 def codenames :main end  | 
  
.restrictive_options ⇒ Object
      24 25 26  | 
    
      # File 'lib/card/follow_option.rb', line 24 def codenames :restrictive end  |