Class: VersSdk::PublicRepositoryInfo

Inherits:
Object
  • Object
show all
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



74
75
76
77
# File 'lib/vers_sdk/models.rb', line 74

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_hObject



79
80
81
82
83
84
85
86
87
88
# File 'lib/vers_sdk/models.rb', line 79

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



90
91
92
# File 'lib/vers_sdk/models.rb', line 90

def to_json(*args)
  to_h.to_json(*args)
end