Class: VersSdk::VmCommitEntity

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



429
430
431
432
# File 'lib/vers_sdk/models.rb', line 429

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



434
435
436
437
438
439
440
441
442
443
444
445
# File 'lib/vers_sdk/models.rb', line 434

def to_h
  {
    "created_at" => @vm_commit_entity,
    "description" => @vm_commit_entity,
    "grandparent_commit_id" => @vm_commit_entity,
    "id" => @vm_commit_entity,
    "is_public" => @vm_commit_entity,
    "name" => @vm_commit_entity,
    "owner_id" => @vm_commit_entity,
    "parent_vm_id" => @vm_commit_entity,
  }
end

#to_json(*args) ⇒ Object



447
448
449
# File 'lib/vers_sdk/models.rb', line 447

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