Class: Appwrite::Models::Team
- Inherits:
-
Object
- Object
- Appwrite::Models::Team
- Defined in:
- lib/appwrite/models/team.rb
Instance Attribute Summary collapse
-
#date_created ⇒ Object
readonly
Returns the value of attribute date_created.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, name:, date_created:, total:) ⇒ Team
constructor
A new instance of Team.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, name:, date_created:, total:) ⇒ Team
Returns a new instance of Team.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/appwrite/models/team.rb', line 11 def initialize( id:, name:, date_created:, total: ) @id = id @name = name @date_created = date_created @total = total end |
Instance Attribute Details
#date_created ⇒ Object (readonly)
Returns the value of attribute date_created.
8 9 10 |
# File 'lib/appwrite/models/team.rb', line 8 def date_created @date_created end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/team.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/appwrite/models/team.rb', line 7 def name @name end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
9 10 11 |
# File 'lib/appwrite/models/team.rb', line 9 def total @total end |
Class Method Details
Instance Method Details
#to_map ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/appwrite/models/team.rb', line 32 def to_map { "$id": @id, "name": @name, "dateCreated": @date_created, "total": @total } end |