Class: VersSdk::PublicRepositoryInfo
- Inherits:
-
Object
- Object
- VersSdk::PublicRepositoryInfo
- Defined in:
- lib/vers_sdk/models.rb
Overview
Public repository information (includes owner org name for namespacing)
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
305 306 307 308 |
# File 'lib/vers_sdk/models.rb', line 305 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
310 311 312 313 314 315 316 317 318 319 |
# File 'lib/vers_sdk/models.rb', line 310 def to_h { "created_at" => @public_repository_info, "description" => @public_repository_info, "full_name" => @public_repository_info, "name" => @public_repository_info, "org_name" => @public_repository_info, "repo_id" => @public_repository_info, } end |
#to_json(*args) ⇒ Object
321 322 323 |
# File 'lib/vers_sdk/models.rb', line 321 def to_json(*args) to_h.to_json(*args) end |