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



503
504
505
# File 'lib/fizzy/generated/types.rb', line 503

def created_at
  @created_at
end

#download_urlObject (readonly)

Returns the value of attribute download_url

Returns:

  • (Object)

    the current value of download_url



503
504
505
# File 'lib/fizzy/generated/types.rb', line 503

def download_url
  @download_url
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



503
504
505
# File 'lib/fizzy/generated/types.rb', line 503

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



503
504
505
# File 'lib/fizzy/generated/types.rb', line 503

def status
  @status
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



505
506
507
508
509
510
511
512
# File 'lib/fizzy/generated/types.rb', line 505

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