Class: Gitload::Sources::GitLab::Repo

Inherits:
Repo
  • Object
show all
Defined in:
lib/gitload/sources/gitlab.rb

Instance Attribute Summary

Attributes inherited from Repo

#api_data, #clone_urls, #cloned, #fork, #name, #owner, #owner_type, #source

Instance Method Summary collapse

Methods inherited from Repo

#clone_to, #clone_url, #cloned?, #fork?

Constructor Details

#initialize(api_data) ⇒ Repo

Returns a new instance of Repo.



36
37
38
39
40
41
42
43
44
# File 'lib/gitload/sources/gitlab.rb', line 36

def initialize api_data
  super :gitlab, api_data

  @name = api_data['path']
  @owner = api_data['namespace']['path']

  @clone_urls[:ssh] = api_data['ssh_url_to_repo']
  @clone_urls[:http] = api_data['http_url_to_repo']
end