Class: Status::Github::Statuses

Inherits:
Object
  • Object
show all
Defined in:
lib/status/github/statuses.rb

Instance Method Summary collapse

Constructor Details

#initialize(qa_status, branch, user_sha = nil) ⇒ Statuses

Returns a new instance of Statuses.



6
7
8
9
10
11
# File 'lib/status/github/statuses.rb', line 6

def initialize(qa_status, branch, user_sha=nil)
  @qa_status = qa_status
  @branch = branch
  @user_sha = user_sha
  @jenkins = Jenkins.new(branch, sha)
end

Instance Method Details

#requestObject



13
14
15
# File 'lib/status/github/statuses.rb', line 13

def request
  Request.new.post(status_api, payload)
end