Class: VersSdk::RepositoryInfo
- Inherits:
-
Object
- Object
- VersSdk::RepositoryInfo
- Defined in:
- lib/vers_sdk/models.rb
Overview
Repository information returned in list and get operations
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
1092 1093 1094 1095 |
# File 'lib/vers_sdk/models.rb', line 1092 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
1097 1098 1099 1100 1101 1102 1103 1104 1105 |
# File 'lib/vers_sdk/models.rb', line 1097 def to_h { "created_at" => @repository_info, "description" => @repository_info, "is_public" => @repository_info, "name" => @repository_info, "repo_id" => @repository_info, } end |
#to_json(*args) ⇒ Object
1107 1108 1109 |
# File 'lib/vers_sdk/models.rb', line 1107 def to_json(*args) to_h.to_json(*args) end |