Method: Chromecast::Connection#certificate

Defined in:
lib/chromecast/connection.rb

#certificate(type) ⇒ Object



24
25
26
27
28
29
30
31
32
# File 'lib/chromecast/connection.rb', line 24

def certificate(type)
  case type
    when :crt
      return File.open(crt_file).read
    when :key
      return File.open(key_file).read
  end
  return nil
end