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
779 780 781 782 |
# File 'lib/vers_sdk/models.rb', line 779 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
784 785 786 787 788 789 790 791 792 |
# File 'lib/vers_sdk/models.rb', line 784 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
794 795 796 |
# File 'lib/vers_sdk/models.rb', line 794 def to_json(*args) to_h.to_json(*args) end |