Class: PipelineService::Events::HTTPClient

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
app/services/pipeline_service/events/http_client.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.post(endpoint, args = {}) ⇒ Object



5
6
7
# File 'app/services/pipeline_service/events/http_client.rb', line 5

def self.post(endpoint, args={})
  instance.post(endpoint, args)
end

Instance Method Details

#post(endpoint, args) ⇒ Object



9
10
11
# File 'app/services/pipeline_service/events/http_client.rb', line 9

def post(endpoint, args)
  HTTParty.post(endpoint, args)
end