Class: CircleCI::CLI::Response::Project
- Inherits:
-
Object
- Object
- CircleCI::CLI::Response::Project
- Defined in:
- lib/circleci/cli/response/project.rb
Class Method Summary collapse
Instance Method Summary collapse
- #information ⇒ Object
-
#initialize(hash) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(hash) ⇒ Project
Returns a new instance of Project.
7 8 9 |
# File 'lib/circleci/cli/response/project.rb', line 7 def initialize(hash) @hash = hash end |
Class Method Details
.all ⇒ Object
15 16 17 |
# File 'lib/circleci/cli/response/project.rb', line 15 def self.all CircleCi::Projects.new.get.body.map { |p| Project.new(p) } end |
Instance Method Details
#information ⇒ Object
11 12 13 |
# File 'lib/circleci/cli/response/project.rb', line 11 def information [@hash['username'], @hash['reponame']] end |