Class: VersSdk::ListCommitsResponse
- Inherits:
-
Object
- Object
- VersSdk::ListCommitsResponse
- Defined in:
- lib/vers_sdk/models.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
279 280 281 282 |
# File 'lib/vers_sdk/models.rb', line 279 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
284 285 286 287 288 289 290 291 |
# File 'lib/vers_sdk/models.rb', line 284 def to_h { "commits" => @list_commits_response, "limit" => @list_commits_response, "offset" => @list_commits_response, "total" => @list_commits_response, } end |
#to_json(*args) ⇒ Object
293 294 295 |
# File 'lib/vers_sdk/models.rb', line 293 def to_json(*args) to_h.to_json(*args) end |