module DHL::Ecommerce::Operations::Find::ClassMethods

Public Instance Methods

find(id) click to toggle source
# File lib/dhl/ecommerce/operations/find.rb, line 6
def find(id)
  attributes = DHL::Ecommerce.request :get, "https://api.dhlglobalmail.com/v1/#{resource_name.downcase}s/#{id}"
  new attributes[resource_name]
end