Sha256: 7dc39a0a380e8bf3ff7449f0a9cae17f5d92eeb8ca4b46c9003068a58b6cf0c5

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

require_relative "base_client"

module PortalConnectors
  class PullRequestClient < BaseClient
    def submit_sprint_hours(hours_params)
      params = hours_params.merge(nonce: next_nonce)
      url = "#{host}/api/v1/sprint_performances"
      res = post_with_signature(url, params)
      [JSON.parse(res.body_str), [200, 201].include?(res.response_code)]
    rescue => e
      return_error e
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
portal-connectors-0.58.39xc lib/portal-connectors/pull_request_client.rb
portal-connectors-0.58.39xb lib/portal-connectors/pull_request_client.rb
portal-connectors-0.58.39xa lib/portal-connectors/pull_request_client.rb
portal-connectors-0.58.39fj lib/portal-connectors/pull_request_client.rb
portal-connectors-0.58.39fg lib/portal-connectors/pull_request_client.rb
portal-connectors-0.58.38xn lib/portal-connectors/pull_request_client.rb