Class: StashCLI::Project
- Inherits:
-
Object
- Object
- StashCLI::Project
- Defined in:
- lib/stash_cli/project.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#source_slug ⇒ Object
readonly
Returns the value of attribute source_slug.
-
#target_branch ⇒ Object
readonly
Returns the value of attribute target_branch.
-
#target_slug ⇒ Object
readonly
Returns the value of attribute target_slug.
Instance Method Summary collapse
-
#initialize(project, source_slug, target_slug, target_branch) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(project, source_slug, target_slug, target_branch) ⇒ Project
Returns a new instance of Project.
5 6 7 8 9 10 |
# File 'lib/stash_cli/project.rb', line 5 def initialize(project, source_slug, target_slug, target_branch) @project = project @source_slug = source_slug @target_slug = target_slug @target_branch = target_branch end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
3 4 5 |
# File 'lib/stash_cli/project.rb', line 3 def project @project end |
#source_slug ⇒ Object (readonly)
Returns the value of attribute source_slug.
3 4 5 |
# File 'lib/stash_cli/project.rb', line 3 def source_slug @source_slug end |
#target_branch ⇒ Object (readonly)
Returns the value of attribute target_branch.
3 4 5 |
# File 'lib/stash_cli/project.rb', line 3 def target_branch @target_branch end |
#target_slug ⇒ Object (readonly)
Returns the value of attribute target_slug.
3 4 5 |
# File 'lib/stash_cli/project.rb', line 3 def target_slug @target_slug end |