Class: Circler::Project

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Project

Returns a new instance of Project.



5
6
7
# File 'lib/circler/response/project.rb', line 5

def initialize(hash)
  @hash = hash
end

Class Method Details

.allObject



13
14
15
# File 'lib/circler/response/project.rb', line 13

def self.all
  CircleCi::Projects.new.get.body.map { |p| Project.new(p) }
end

Instance Method Details

#informationObject



9
10
11
# File 'lib/circler/response/project.rb', line 9

def information
  [@hash['username'], @hash['reponame']]
end