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



419
420
421
# File 'lib/fizzy/generated/types.rb', line 419

def byte_size
  @byte_size
end

#checksumObject (readonly)

Returns the value of attribute checksum

Returns:

  • (Object)

    the current value of checksum



419
420
421
# File 'lib/fizzy/generated/types.rb', line 419

def checksum
  @checksum
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



419
420
421
# File 'lib/fizzy/generated/types.rb', line 419

def content_type
  @content_type
end

#filenameObject (readonly)

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



419
420
421
# File 'lib/fizzy/generated/types.rb', line 419

def filename
  @filename
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



421
422
423
424
425
426
427
428
# File 'lib/fizzy/generated/types.rb', line 421

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