class Pandorabots::API::TalkResult

Attributes

response[R]
sessionid[R]
trace[R]

Public Class Methods

new(json_str) click to toggle source
# File lib/pandorabots.rb, line 145
def initialize(json_str)
  json = JSON.parse(json_str)
  @response = json['responses'] unless json['responses'].nil?
  @sessionid = json['sessionid'] unless json['sessionid'].nil?
  @trace = json['trace'] unless json['trace'].nil?
end