Sha256: 996b20090a2f4fdcf3e0158b6837b76a3186409629c99b40270ae51d6211d790

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require "json_api_client"
require "dotenv/load"

module Core
  module Client
    module V2
      class Base < JsonApiClient::Resource
        self.site = "https://core.able.co/api/v2"
        self.raise_on_blank_find_param = true

        class << self
          def find(id)
            super(id).first
          end
        end
      end
    end
  end
end

Core::Client::V2::Base.connection_options[:headers] = { "Authorization" => "Bearer #{ENV['CORE_API_TOKEN']}" }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
core-client-0.2.0 lib/core/client/v2/base.rb
core-client-0.1.0 lib/core/client/v2/base.rb