Class: Appwrite::Models::UserList
- Inherits:
 - 
      Object
      
        
- Object
 - Appwrite::Models::UserList
 
 
- Defined in:
 - lib/appwrite/models/user_list.rb
 
Instance Attribute Summary collapse
- 
  
    
      #total  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute total.
 - 
  
    
      #users  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute users.
 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(total:, users:)  ⇒ UserList 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of UserList.
 - #to_map ⇒ Object
 
Constructor Details
#initialize(total:, users:) ⇒ UserList
Returns a new instance of UserList.
      9 10 11 12 13 14 15  | 
    
      # File 'lib/appwrite/models/user_list.rb', line 9 def initialize( total:, users: ) @total = total @users = users end  | 
  
Instance Attribute Details
#total ⇒ Object (readonly)
Returns the value of attribute total.
      6 7 8  | 
    
      # File 'lib/appwrite/models/user_list.rb', line 6 def total @total end  | 
  
#users ⇒ Object (readonly)
Returns the value of attribute users.
      7 8 9  | 
    
      # File 'lib/appwrite/models/user_list.rb', line 7 def users @users end  | 
  
Class Method Details
Instance Method Details
#to_map ⇒ Object
      24 25 26 27 28 29  | 
    
      # File 'lib/appwrite/models/user_list.rb', line 24 def to_map { "total": @total, "users": @users.map { |it| it.to_map } } end  |