Class: EasyPost::Services::Rate

Inherits:
Service
  • Object
show all
Defined in:
lib/easypost/services/rate.rb

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from EasyPost::Services::Service

Instance Method Details

#retrieve(id) ⇒ Object

Retrieve a Rate



5
6
7
8
9
# File 'lib/easypost/services/rate.rb', line 5

def retrieve(id)
  response = @client.make_request(:get, "rates/#{id}")

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