Sha256: 0013463c3df6f4c7d40b215aae613d3d548b44a4bf92709156f4542c89934e8c
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true module GoogleAssistant module Permission NAME = "NAME" DEVICE_PRECISE_LOCATION = "DEVICE_PRECISE_LOCATION" DEVICE_COARSE_LOCATION = "DEVICE_COARSE_LOCATION" def self.valid?(permissions) permissions = [*permissions] permissions.all? do |permission| [NAME, DEVICE_PRECISE_LOCATION, DEVICE_COARSE_LOCATION].include?(permission) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
google_assistant-1.0.0 | lib/google_assistant/permission.rb |
google_assistant-1.0.0.beta | lib/google_assistant/permission.rb |
google_assistant-0.2.0 | lib/google_assistant/permission.rb |