Method: Postmen::RateCollection.find

Defined in:
lib/postmen/rate_collection.rb

.find(id) ⇒ Rate

Fetch single rate

Parameters:

  • id (UUID)

    Rate UUID

Returns:

Raises:

  • ResourceNotFound if Rate with given id was not found

See Also:



26
27
28
# File 'lib/postmen/rate_collection.rb', line 26

def self.find(id)
  get(Connection.new.get("/rates/#{id}").parsed_response)
end