Class: RocketValidator::V0::Resource

Inherits:
JsonApiClient::Resource
  • Object
show all
Defined in:
lib/rocketvalidator/v0/resource.rb

Class Method Summary collapse

Class Method Details

.with_api_token(token) ⇒ Object



7
8
9
10
11
# File 'lib/rocketvalidator/v0/resource.rb', line 7

def self.with_api_token(token)
  with_headers(authorization: "Bearer #{token}") do
    yield
  end
end