lib/travis/client/weak_entity.rb in travis-1.6.8.travis.447.6 vs lib/travis/client/weak_entity.rb in travis-1.6.8.travis.449.6
- old
+ new
@@ -1,10 +1,12 @@
require 'travis/client'
module Travis
module Client
class WeakEntity < Entity
+ include NotLoadable
+
def self.weak?
true
end
def self.id_field
@@ -16,17 +18,9 @@
end
def self.cast_id(object)
return object if id? object
raise "weak entities do not have id fields"
- end
-
- def missing?(attribute)
- false
- end
-
- def complete?
- true
end
end
end
end
\ No newline at end of file