Class: Fizzy::Types::AccountExport

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



40
41
42
# File 'lib/fizzy/generated/types.rb', line 40

def created_at
  @created_at
end

#download_urlObject (readonly)

Returns the value of attribute download_url

Returns:

  • (Object)

    the current value of download_url



40
41
42
# File 'lib/fizzy/generated/types.rb', line 40

def download_url
  @download_url
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



40
41
42
# File 'lib/fizzy/generated/types.rb', line 40

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



40
41
42
# File 'lib/fizzy/generated/types.rb', line 40

def status
  @status
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



42
43
44
45
46
47
48
49
# File 'lib/fizzy/generated/types.rb', line 42

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