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
  url = "#{self.url}/#{id}"
  response  = Onfleet.request(url, :get)
  Util.constantize("#{self}").new(response)
end