Class: SirvRestApi::FolderContents
- Inherits:
-
Object
- Object
- SirvRestApi::FolderContents
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Folder contents
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#continuation ⇒ Object
Returns the value of attribute continuation.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ FolderContents
constructor
A new instance of FolderContents.
Constructor Details
#initialize(data = {}) ⇒ FolderContents
Returns a new instance of FolderContents.
206 207 208 209 |
# File 'lib/sirv_rest_api/models.rb', line 206 def initialize(data = {}) @contents = (data["contents"] || []).map { |item| FileInfo.new(item) } @continuation = data["continuation"] end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
204 205 206 |
# File 'lib/sirv_rest_api/models.rb', line 204 def contents @contents end |
#continuation ⇒ Object
Returns the value of attribute continuation.
204 205 206 |
# File 'lib/sirv_rest_api/models.rb', line 204 def continuation @continuation end |