Module: Onfleet::Actions::Get::ClassMethods
- Defined in:
- lib/onfleet-ruby/actions/get.rb
Instance Method Summary collapse
Instance Method Details
#get(id) ⇒ Object
5 6 7 8 9 |
# 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("#{self}").new(response) end |