Class: Gitlab::Cli::Project
- Inherits:
-
Object
- Object
- Gitlab::Cli::Project
- Defined in:
- lib/gitlab/cli/project.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(api, options) ⇒ Project
constructor
A new instance of Project.
- #update_variables(variables) ⇒ Object
Constructor Details
#initialize(api, options) ⇒ Project
Returns a new instance of Project.
8 9 10 11 12 |
# File 'lib/gitlab/cli/project.rb', line 8 def initialize(api, ) @id = [:id] @name = [:name] @api = api end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/gitlab/cli/project.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/gitlab/cli/project.rb', line 6 def name @name end |
Instance Method Details
#update_variables(variables) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/gitlab/cli/project.rb', line 14 def update_variables(variables) if @id == 534 delete_existing_vars create_given_vars(variables) end end |