Class: Fizzy::Types::DirectUpload

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



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def byte_size
  @byte_size
end

#checksumObject (readonly)

Returns the value of attribute checksum

Returns:

  • (Object)

    the current value of checksum



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def checksum
  @checksum
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def content_type
  @content_type
end

#direct_uploadObject (readonly)

Returns the value of attribute direct_upload

Returns:

  • (Object)

    the current value of direct_upload



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def direct_upload
  @direct_upload
end

#filenameObject (readonly)

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def filename
  @filename
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



505
506
507
# File 'lib/fizzy/generated/types.rb', line 505

def key
  @key
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



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