class Google::Auth::ClientId

def self.from_file file

Returns:
  • (Google::Auth::ClientID) -

Parameters:
  • file (String, File) --
def self.from_file file
  raise "File can not be nil." if file.nil?
  File.open file.to_s do |f|
    json = f.read
    config = MultiJson.load json
    from_hash config
  end
end