Sha256: 7fceef64c5ed6cd2cb77a85e6cb6ab85a2624b27f99ed50100f15995bec8b5e0

Contents?: true

Size: 294 Bytes

Versions: 7

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

class EasyPost::Services::Rate < EasyPost::Services::Service
  # Retrieve a Rate
  def retrieve(id)
    response = @client.make_request(:get, "rates/#{id}")

    EasyPost::InternalUtilities::Json.convert_json_to_object(response, EasyPost::Models::Rate)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
easypost-6.4.1 lib/easypost/services/rate.rb
easypost-6.4.0 lib/easypost/services/rate.rb
easypost-6.3.0 lib/easypost/services/rate.rb
easypost-6.2.0 lib/easypost/services/rate.rb
easypost-6.1.1 lib/easypost/services/rate.rb
easypost-6.1.0 lib/easypost/services/rate.rb
easypost-6.0.0 lib/easypost/services/rate.rb