googleapis / gax-ruby

Google API Extensions for Ruby
https://rubygems.org/gems/google-gax
BSD 3-Clause "New" or "Revised" License
20 stars 22 forks source link

Add request header params #107

Closed evaogbe closed 6 years ago

evaogbe commented 6 years ago

To be used to add routing headers like this:

@create_book = Google::Gax.create_api_call(
          @library_service_stub.method(:create_book),
          defaults["create_book"],
          params_extractor: proc do |request|
            {'name' => request.name, 'book.read' => request.book.read}
          end
        )
codecov-io commented 6 years ago

Codecov Report

Merging #107 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   99.44%   99.44%   +<.01%     
==========================================
  Files          19       19              
  Lines        1788     1807      +19     
==========================================
+ Hits         1778     1797      +19     
  Misses         10       10
Impacted Files Coverage Δ
lib/google/gax/api_callable.rb 98.33% <100%> (+0.1%) :arrow_up:
spec/google/gax/api_callable_spec.rb 98.11% <100%> (+0.11%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cba2857...11b75a3. Read the comment docs.