src/functions/questions_handler.rb
def store_questions(body)
  data = parse_body(body)
  if data
    DYNAMODB.put_item({
      table_name: TABLE_NAME,
      item: data
    })
    true
  else
    false
  end
end
# Function for storing question in the DB
Function for storing question in the DB
Function for storing question in the DB
def store_questions(body)
  data = parse_body(body)
  if data
    DYNAMODB.put_item({
      table_name: TABLE_NAME,
      item: data
    })
    true
  else
    false
  end
end
def store_questions ( body ) data = parse_body ( body ) if data DYNAMODB . put_item ( { table_name : TABLE_NAME , item : data } ) true else false end end
Function for storing question in the DB
Function for storing question in the DB
body