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



8
9
10
# File 'lib/travis/client/has_uuid.rb', line 8

def cast_id(object)
  object.to_str
end

#id?(object) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/travis/client/has_uuid.rb', line 4

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