Class: VersSdk::CreateRepositoryResponse
- Inherits:
-
Object
- Object
- VersSdk::CreateRepositoryResponse
- Defined in:
- lib/vers_sdk/models.rb
Overview
Response body for POST /api/v1/repositories
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
216 217 218 219 |
# File 'lib/vers_sdk/models.rb', line 216 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
221 222 223 224 225 226 |
# File 'lib/vers_sdk/models.rb', line 221 def to_h { "name" => @create_repository_response, "repo_id" => @create_repository_response, } end |
#to_json(*args) ⇒ Object
228 229 230 |
# File 'lib/vers_sdk/models.rb', line 228 def to_json(*args) to_h.to_json(*args) end |