Class: StashCLI::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/stash_cli/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#projectObject (readonly)

Returns the value of attribute project.



3
4
5
# File 'lib/stash_cli/project.rb', line 3

def project
  @project
end

#source_slugObject (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_branchObject (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_slugObject (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