Class: Fizzy::Types::DirectUploadMetadata

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



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

def headers
  @headers
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



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

def url
  @url
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(
    url: data["url"],
    headers: data["headers"]
  )
end