Class: VersSdk::RepoTagInfo
- Inherits:
-
Object
- Object
- VersSdk::RepoTagInfo
- Defined in:
- lib/vers_sdk/models.rb
Overview
Tag information within a repository context
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
1324 1325 1326 1327 |
# File 'lib/vers_sdk/models.rb', line 1324 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
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 |
# File 'lib/vers_sdk/models.rb', line 1329 def to_h { "commit_id" => @repo_tag_info, "created_at" => @repo_tag_info, "description" => @repo_tag_info, "reference" => @repo_tag_info, "tag_id" => @repo_tag_info, "tag_name" => @repo_tag_info, "updated_at" => @repo_tag_info, } end |
#to_json(*args) ⇒ Object
1341 1342 1343 |
# File 'lib/vers_sdk/models.rb', line 1341 def to_json(*args) to_h.to_json(*args) end |