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



603
604
605
606
# File 'lib/vers_sdk/models.rb', line 603

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



608
609
610
611
612
# File 'lib/vers_sdk/models.rb', line 608

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

#to_json(*args) ⇒ Object



614
615
616
# File 'lib/vers_sdk/models.rb', line 614

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