Class: YourImageShare::UploadResult
- Inherits:
-
Struct
- Object
- Struct
- YourImageShare::UploadResult
- Defined in:
- lib/yourimageshare/types.rb
Overview
Response shape for a successful upload - same fields as the Go/JS/Python/PHP SDKs' UploadResult.
Instance Attribute Summary collapse
-
#direct ⇒ Object
Returns the value of attribute direct.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#path ⇒ Object
Returns the value of attribute path.
-
#src ⇒ Object
Returns the value of attribute src.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#direct ⇒ Object
Returns the value of attribute direct
4 5 6 |
# File 'lib/yourimageshare/types.rb', line 4 def direct @direct end |
#expires_at ⇒ Object
Returns the value of attribute expires_at
4 5 6 |
# File 'lib/yourimageshare/types.rb', line 4 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/yourimageshare/types.rb', line 4 def id @id end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/yourimageshare/types.rb', line 4 def path @path end |
#src ⇒ Object
Returns the value of attribute src
4 5 6 |
# File 'lib/yourimageshare/types.rb', line 4 def src @src end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/yourimageshare/types.rb', line 4 def type @type end |
Class Method Details
.from_json(h) ⇒ Object
5 6 7 8 |
# File 'lib/yourimageshare/types.rb', line 5 def self.from_json(h) new(id: h["id"], type: h["type"], path: h["path"], src: h["src"], direct: h["direct"], expires_at: h["expires_at"]) end |