class Travis::Client::WeakEntity
Public Class Methods
cast_id(object)
click to toggle source
# 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
id?(object)
click to toggle source
# File lib/travis/client/weak_entity.rb, line 16 def self.id?(object) object.nil? end
id_field()
click to toggle source
# File lib/travis/client/weak_entity.rb, line 12 def self.id_field raise "weak entities do not have id fields" end
weak?()
click to toggle source
# File lib/travis/client/weak_entity.rb, line 8 def self.weak? true end