Class: Circler::Project
- Inherits:
-
Object
- Object
- Circler::Project
- Defined in:
- lib/circler/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.
3 4 5 |
# File 'lib/circler/response/project.rb', line 3 def initialize(hash) @hash = hash end |
Class Method Details
.all ⇒ Object
11 12 13 |
# File 'lib/circler/response/project.rb', line 11 def self.all CircleCi::Project.all.body.map { |p| Project.new(p) } end |
Instance Method Details
#information ⇒ Object
7 8 9 |
# File 'lib/circler/response/project.rb', line 7 def information [@hash['username'], @hash['reponame']] end |