Class: StashCloneTool::Project

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, json) ⇒ Project

Returns a new instance of Project.



6
7
8
9
10
# File 'lib/stash_clone_tool/project.rb', line 6

def initialize(client, json)
  @name = json['name']
  @key = json['key']
  @repositories = client.get_repositories(self)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/stash_clone_tool/project.rb', line 4

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/stash_clone_tool/project.rb', line 4

def name
  @name
end

#repositoriesObject (readonly)

Returns the value of attribute repositories.



4
5
6
# File 'lib/stash_clone_tool/project.rb', line 4

def repositories
  @repositories
end