module Travis::Client::HasUuid
Public Instance Methods
cast_id(object)
click to toggle source
# File lib/travis/client/has_uuid.rb, line 8 def cast_id(object) object.to_str end
id?(object)
click to toggle source
# File lib/travis/client/has_uuid.rb, line 4 def id?(object) object =~ /\A(?:\w+-){4}\w+\Z/ if object.is_a? String end