Class: VersSdk::TagInfo

Inherits:
Object
  • Object
show all
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



1305
1306
1307
1308
# File 'lib/vers_sdk/models.rb', line 1305

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



1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
# File 'lib/vers_sdk/models.rb', line 1310

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



1321
1322
1323
# File 'lib/vers_sdk/models.rb', line 1321

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