class Aws::Lex::Conversation::Type::SessionAttributes
Public Instance Methods
checkpoints()
click to toggle source
# File lib/aws/lex/conversation/type/session_attributes.rb, line 12 def checkpoints @checkpoints ||= JSON.parse( Base64.urlsafe_decode64(fetch(:checkpoints) { Base64.urlsafe_encode64([].to_json, padding: false) }) ).map do |checkpoint| Checkpoint.shrink_wrap(checkpoint) end end
to_lex()
click to toggle source
# File lib/aws/lex/conversation/type/session_attributes.rb, line 20 def to_lex merge( checkpoints: Base64.urlsafe_encode64(checkpoints.map(&:to_lex).to_json, padding: false) ).to_h end