Module: Travis::Client::HasUuid

Included in:
EnvVar
Defined in:
lib/travis/client/has_uuid.rb

Instance Method Summary collapse

Instance Method Details

#cast_id(object) ⇒ Object



10
11
12
# File 'lib/travis/client/has_uuid.rb', line 10

def cast_id(object)
  object.to_str
end

#id?(object) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/travis/client/has_uuid.rb', line 6

def id?(object)
  object =~ /\A(?:\w+-){4}\w+\Z/ if object.is_a? String
end