class GoogleAssistant::Argument
Attributes
name[R]
raw_text[R]
text_value[R]
Public Class Methods
from(opts)
click to toggle source
# File lib/google_assistant/argument.rb, line 7 def self.from(opts) case opts["name"] when "permission_granted" PermissionArgument.new(opts) when "text" TextArgument.new(opts) else Argument.new(opts) end end
new(opts)
click to toggle source
# File lib/google_assistant/argument.rb, line 18 def initialize(opts) @name = opts["name"] @raw_text = opts["raw_text"] @text_value = opts["text_value"] end