Class: YourImageShare::ListResult
- Inherits:
-
Struct
- Object
- Struct
- YourImageShare::ListResult
- Defined in:
- lib/yourimageshare/types.rb
Overview
Response shape for #list.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#meta ⇒ Object
Returns the value of attribute meta.
Class Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
28 29 30 |
# File 'lib/yourimageshare/types.rb', line 28 def data @data end |
#meta ⇒ Object
Returns the value of attribute meta
28 29 30 |
# File 'lib/yourimageshare/types.rb', line 28 def @meta end |
Class Method Details
.from_json(h) ⇒ Object
29 30 31 32 |
# File 'lib/yourimageshare/types.rb', line 29 def self.from_json(h) new(data: (h["data"] || []).map { |row| ListedUpload.from_json(row) }, meta: ListMeta.from_json(h["meta"] || {})) end |