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