Class: Fizzy::Types::CreateDirectUploadRequestContent

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#byte_sizeObject (readonly)

Returns the value of attribute byte_size

Returns:

  • (Object)

    the current value of byte_size



430
431
432
# File 'lib/fizzy/generated/types.rb', line 430

def byte_size
  @byte_size
end

#checksumObject (readonly)

Returns the value of attribute checksum

Returns:

  • (Object)

    the current value of checksum



430
431
432
# File 'lib/fizzy/generated/types.rb', line 430

def checksum
  @checksum
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



430
431
432
# File 'lib/fizzy/generated/types.rb', line 430

def content_type
  @content_type
end

#filenameObject (readonly)

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



430
431
432
# File 'lib/fizzy/generated/types.rb', line 430

def filename
  @filename
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



432
433
434
435
436
437
438
439
# File 'lib/fizzy/generated/types.rb', line 432

def self.from_json(data)
  new(
    filename: data["filename"],
    content_type: data["content_type"],
    byte_size: data["byte_size"],
    checksum: data["checksum"]
  )
end