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



521
522
523
# File 'lib/fizzy/generated/types.rb', line 521

def content_md5
  @content_md5
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



521
522
523
# File 'lib/fizzy/generated/types.rb', line 521

def content_type
  @content_type
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



523
524
525
526
527
528
# File 'lib/fizzy/generated/types.rb', line 523

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