Class: Appwrite::Models::FileList
- Inherits:
-
Object
- Object
- Appwrite::Models::FileList
- Defined in:
- lib/appwrite/models/file_list.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(total:, files:) ⇒ FileList
constructor
A new instance of FileList.
- #to_map ⇒ Object
Constructor Details
#initialize(total:, files:) ⇒ FileList
Returns a new instance of FileList.
9 10 11 12 13 14 15 |
# File 'lib/appwrite/models/file_list.rb', line 9 def initialize( total:, files: ) @total = total @files = files end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
7 8 9 |
# File 'lib/appwrite/models/file_list.rb', line 7 def files @files end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
6 7 8 |
# File 'lib/appwrite/models/file_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/file_list.rb', line 24 def to_map { "total": @total, "files": @files.map { |it| it.to_map } } end |