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
530 531 532 533 |
# File 'lib/vers_sdk/models.rb', line 530 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
535 536 537 538 539 540 541 542 |
# File 'lib/vers_sdk/models.rb', line 535 def to_h { "commits" => @list_commits_response, "limit" => @list_commits_response, "offset" => @list_commits_response, "total" => @list_commits_response, } end |
#to_json(*args) ⇒ Object
544 545 546 |
# File 'lib/vers_sdk/models.rb', line 544 def to_json(*args) to_h.to_json(*args) end |