Class: VersSdk::VmCommitEntity
- Inherits:
-
Object
- Object
- VersSdk::VmCommitEntity
- Defined in:
- lib/vers_sdk/models.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
1268 1269 1270 1271 |
# File 'lib/vers_sdk/models.rb', line 1268 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_h ⇒ Object
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 |
# File 'lib/vers_sdk/models.rb', line 1273 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
1286 1287 1288 |
# File 'lib/vers_sdk/models.rb', line 1286 def to_json(*args) to_h.to_json(*args) end |