Class: Fizzy::Types::DirectUpload
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::DirectUpload
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#byte_size ⇒ Object
readonly
Returns the value of attribute byte_size.
-
#checksum ⇒ Object
readonly
Returns the value of attribute checksum.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#direct_upload ⇒ Object
readonly
Returns the value of attribute direct_upload.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Class Method Summary collapse
Instance Attribute Details
#byte_size ⇒ Object (readonly)
Returns the value of attribute byte_size
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def byte_size @byte_size end |
#checksum ⇒ Object (readonly)
Returns the value of attribute checksum
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def checksum @checksum end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def content_type @content_type end |
#direct_upload ⇒ Object (readonly)
Returns the value of attribute direct_upload
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def direct_upload @direct_upload end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key
505 506 507 |
# File 'lib/fizzy/generated/types.rb', line 505 def key @key end |
Class Method Details
.from_json(data) ⇒ Object
507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/fizzy/generated/types.rb', line 507 def self.from_json(data) new( id: data["id"], key: data["key"], filename: data["filename"], content_type: data["content_type"], byte_size: data["byte_size"], checksum: data["checksum"], direct_upload: data["direct_upload"] ) end |