Class: VersSdk::ListPublicRepositoriesResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Overview

Response body for GET /api/v1/public/repositories

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



828
829
830
831
# File 'lib/vers_sdk/models.rb', line 828

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



833
834
835
836
837
# File 'lib/vers_sdk/models.rb', line 833

def to_h
  {
    "repositories" => @list_public_repositories_response,
  }
end

#to_json(*args) ⇒ Object



839
840
841
# File 'lib/vers_sdk/models.rb', line 839

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