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