Skip to content

Commit

Permalink
Fix the new vehicle() API
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Sep 25, 2019
1 parent 26da58a commit 2b24f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tesla_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def vehicles
end

def vehicle(id)
Vehicle.new(self, email, id, self.class.get("/vehicles/#{id}")['response'])
Vehicle.new(self, email, id, self.get("/vehicles/#{id}")['response'])
end
end
end

0 comments on commit 2b24f22

Please sign in to comment.