Class: VersSdk::TagInfo
- Inherits:
-
Object
- Object
- VersSdk::TagInfo
- Defined in:
- lib/vers_sdk/models.rb
Overview
Tag information returned in list and get operations
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
497 498 499 500 |
# File 'lib/vers_sdk/models.rb', line 497 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
502 503 504 505 506 507 508 509 510 511 |
# File 'lib/vers_sdk/models.rb', line 502 def to_h { "commit_id" => @tag_info, "created_at" => @tag_info, "description" => @tag_info, "tag_id" => @tag_info, "tag_name" => @tag_info, "updated_at" => @tag_info, } end |
#to_json(*args) ⇒ Object
513 514 515 |
# File 'lib/vers_sdk/models.rb', line 513 def to_json(*args) to_h.to_json(*args) end |