module Onfleet::Actions::Get::ClassMethods

Public Instance Methods

get(id) click to toggle source
# File lib/onfleet-ruby/actions/get.rb, line 5
def get(id)
  api_url = "#{self.api_url}/#{id}"
  response = Onfleet.request(api_url, :get)
  Util.constantize(name).new(response)
end