Class: Fireimg::PresignResult
- Inherits:
-
Struct
- Object
- Struct
- Fireimg::PresignResult
- Defined in:
- lib/fireimg/presign_result.rb
Instance Attribute Summary collapse
-
#expires_in_secs ⇒ Object
Returns the value of attribute expires_in_secs.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#s3_key ⇒ Object
Returns the value of attribute s3_key.
-
#upload_url ⇒ Object
Returns the value of attribute upload_url.
Instance Method Summary collapse
Instance Attribute Details
#expires_in_secs ⇒ Object
Returns the value of attribute expires_in_secs
4 5 6 |
# File 'lib/fireimg/presign_result.rb', line 4 def expires_in_secs @expires_in_secs end |
#filename ⇒ Object
Returns the value of attribute filename
4 5 6 |
# File 'lib/fireimg/presign_result.rb', line 4 def filename @filename end |
#s3_key ⇒ Object
Returns the value of attribute s3_key
4 5 6 |
# File 'lib/fireimg/presign_result.rb', line 4 def s3_key @s3_key end |
#upload_url ⇒ Object
Returns the value of attribute upload_url
4 5 6 |
# File 'lib/fireimg/presign_result.rb', line 4 def upload_url @upload_url end |
Instance Method Details
#to_h ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/fireimg/presign_result.rb', line 5 def to_h { 'upload_url' => upload_url, 's3_key' => s3_key, 'filename' => filename, 'expires_in_secs' => expires_in_secs } end |