lib/travis/client/weak_entity.rb in travis-1.11.1 vs lib/travis/client/weak_entity.rb in travis-1.12.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'travis/client'
module Travis
module Client
class WeakEntity < Entity
@@ -8,19 +10,20 @@
def self.weak?
true
end
def self.id_field
- raise "weak entities do not have id fields"
+ raise 'weak entities do not have id fields'
end
def self.id?(object)
object.nil?
end
def self.cast_id(object)
return object if id? object
- raise "weak entities do not have id fields"
+
+ raise 'weak entities do not have id fields'
end
end
end
-end
\ No newline at end of file
+end