Class: VersSdk::BaseImageStatusResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



1830
1831
1832
1833
# File 'lib/vers_sdk/models.rb', line 1830

def self.from_json(json_str)
  obj = json_str.is_a?(String) ? JSON.parse(json_str) : json_str
  new(obj)
end

Instance Method Details

#to_hObject



1835
1836
1837
1838
1839
1840
1841
1842
# File 'lib/vers_sdk/models.rb', line 1835

def to_h
  {
    "error_message" => @base_image_status_response,
    "image_name" => @base_image_status_response,
    "size_mib" => @base_image_status_response,
    "status" => @base_image_status_response,
  }
end

#to_json(*args) ⇒ Object



1844
1845
1846
# File 'lib/vers_sdk/models.rb', line 1844

def to_json(*args)
  to_h.to_json(*args)
end