# File lib/travis/client/weak_entity.rb, line 20 def self.cast_id(object) return object if id? object raise "weak entities do not have id fields" end