Sha256: 4a0f7088a9116f751ac86734fbb029616936a4713b2cb43fad4b7df45c13fc8e
Contents?: true
Size: 627 Bytes
Versions: 4
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module GoogleAssistant class Conversation class Type TYPE_UNSPECIFIED = 0 NEW = 1 ACTIVE = 2 EXPIRED = 3 ARCHIVED = 4 end attr_reader :id, :type, :dialog_state def initialize(opts) @id = opts["conversation_id"] @type = opts["type"] @dialog_state = DialogState.new(opts["conversation_token"]) end def state dialog_state.state end def state=(state) dialog_state.state = state end def data dialog_state.data end def data=(data) dialog_state.data = data end end end
Version data entries
4 entries across 4 versions & 1 rubygems