Sha256: 47108f2392c8f050954536daa0ab04478ab7074d02470e28e598ae29fc5e37fc

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require "hashie"

module ShipEngine
  module Domain
    class Tokens
      def initialize
        @client = ShipEngine::Client.new
      end

      def ephemeral_token(params: {})
        response = @client.post(
          path: ShipEngine::Constants::PATHS.v1.tokens.root,
          options: params
        )

        Hashie::Mash.new(response.body)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shipengine_ruby-0.0.7 lib/shipengine/domains/tokens.rb
shipengine_ruby-0.0.6 lib/shipengine/domains/tokens.rb
shipengine_ruby-0.0.5 lib/shipengine/domains/tokens.rb
shipengine_ruby-0.0.4 lib/shipengine/domains/tokens.rb
shipengine_ruby-0.0.3 lib/shipengine/domains/tokens.rb
shipengine_ruby-0.0.2 lib/shipengine/domains/tokens.rb
shipengine_ruby-0.0.1 lib/shipengine/domains/tokens.rb