Class: StashCloneTool::Project
- Inherits:
-
Object
- Object
- StashCloneTool::Project
- Defined in:
- lib/stash_clone_tool/project.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#repositories ⇒ Object
readonly
Returns the value of attribute repositories.
Instance Method Summary collapse
-
#initialize(client, json) ⇒ Project
constructor
A new instance of Project.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/stash_clone_tool/project.rb', line 4 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/stash_clone_tool/project.rb', line 4 def name @name end |
#repositories ⇒ Object (readonly)
Returns the value of attribute repositories.
4 5 6 |
# File 'lib/stash_clone_tool/project.rb', line 4 def repositories @repositories end |