Class: Fizzy::Types::DataExport

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



492
493
494
# File 'lib/fizzy/generated/types.rb', line 492

def created_at
  @created_at
end

#download_urlObject (readonly)

Returns the value of attribute download_url

Returns:

  • (Object)

    the current value of download_url



492
493
494
# File 'lib/fizzy/generated/types.rb', line 492

def download_url
  @download_url
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



492
493
494
# File 'lib/fizzy/generated/types.rb', line 492

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



492
493
494
# File 'lib/fizzy/generated/types.rb', line 492

def status
  @status
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



494
495
496
497
498
499
500
501
# File 'lib/fizzy/generated/types.rb', line 494

def self.from_json(data)
  new(
    id: data["id"],
    status: data["status"],
    created_at: data["created_at"],
    download_url: data["download_url"]
  )
end