Class: Fizzy::Types::DirectUploadHeaders

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_md5Object (readonly)

Returns the value of attribute content_md5

Returns:

  • (Object)

    the current value of content_md5



532
533
534
# File 'lib/fizzy/generated/types.rb', line 532

def content_md5
  @content_md5
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



532
533
534
# File 'lib/fizzy/generated/types.rb', line 532

def content_type
  @content_type
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



534
535
536
537
538
539
# File 'lib/fizzy/generated/types.rb', line 534

def self.from_json(data)
  new(
    content_type: data["Content_Type"],
    content_md5: data["Content_MD5"]
  )
end