Class: GitlabCli::Project
- Inherits:
-
Object
- Object
- GitlabCli::Project
- Defined in:
- lib/gitlab_cli/project.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#default_branch ⇒ Object
Returns the value of attribute default_branch.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issues_enabled ⇒ Object
Returns the value of attribute issues_enabled.
-
#merge_requests_enabled ⇒ Object
Returns the value of attribute merge_requests_enabled.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#path ⇒ Object
Returns the value of attribute path.
-
#path_with_namespace ⇒ Object
Returns the value of attribute path_with_namespace.
-
#project_url ⇒ Object
Returns the value of attribute project_url.
-
#public ⇒ Object
Returns the value of attribute public.
-
#wall_enabled ⇒ Object
Returns the value of attribute wall_enabled.
-
#wiki_enabled ⇒ Object
Returns the value of attribute wiki_enabled.
Instance Method Summary collapse
-
#initialize(id, name, description, default_branch, public, path, path_with_namespace, issues_enabled, merge_requests_enabled, wall_enabled, wiki_enabled, created_at, owner = nil) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(id, name, description, default_branch, public, path, path_with_namespace, issues_enabled, merge_requests_enabled, wall_enabled, wiki_enabled, created_at, owner = nil) ⇒ Project
Returns a new instance of Project.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gitlab_cli/project.rb', line 5 def initialize(id, name, description, default_branch, public, path, path_with_namespace, issues_enabled, merge_requests_enabled, wall_enabled, wiki_enabled, created_at, owner=nil) @id = id @name = name @description = description @default_branch = default_branch @public = public @path = path @path_with_namespace = path_with_namespace @issues_enabled = issues_enabled @merge_requests_enabled = merge_requests_enabled @wall_enabled = wall_enabled @wiki_enabled = wiki_enabled @created_at = created_at @project_url = get_project_url @owner = owner.class == 'Gitlab::User' || owner.nil? ? owner : parse_owner(owner) end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def created_at @created_at end |
#default_branch ⇒ Object
Returns the value of attribute default_branch.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def default_branch @default_branch end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def id @id end |
#issues_enabled ⇒ Object
Returns the value of attribute issues_enabled.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def issues_enabled @issues_enabled end |
#merge_requests_enabled ⇒ Object
Returns the value of attribute merge_requests_enabled.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def merge_requests_enabled @merge_requests_enabled end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def owner @owner end |
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def path @path end |
#path_with_namespace ⇒ Object
Returns the value of attribute path_with_namespace.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def path_with_namespace @path_with_namespace end |
#project_url ⇒ Object
Returns the value of attribute project_url.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def project_url @project_url end |
#public ⇒ Object
Returns the value of attribute public.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def public @public end |
#wall_enabled ⇒ Object
Returns the value of attribute wall_enabled.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def wall_enabled @wall_enabled end |
#wiki_enabled ⇒ Object
Returns the value of attribute wiki_enabled.
3 4 5 |
# File 'lib/gitlab_cli/project.rb', line 3 def wiki_enabled @wiki_enabled end |